fix template
This commit is contained in:
parent
9c25aea327
commit
4bb8865e2f
@ -12,6 +12,16 @@ executors:
|
|||||||
ubuntu:
|
ubuntu:
|
||||||
docker:
|
docker:
|
||||||
- image: ubuntu:20.04
|
- image: ubuntu:20.04
|
||||||
|
packer:
|
||||||
|
description: |
|
||||||
|
The HashiCorp provided Packer container
|
||||||
|
parameters:
|
||||||
|
packer-version:
|
||||||
|
type: string
|
||||||
|
default: "1.8"
|
||||||
|
docker:
|
||||||
|
- image: hashicorp/packer:<< parameters.packer-version >>
|
||||||
|
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
install-deps:
|
install-deps:
|
||||||
@ -75,6 +85,26 @@ commands:
|
|||||||
command: |
|
command: |
|
||||||
git fetch --all
|
git fetch --all
|
||||||
|
|
||||||
|
packer_build:
|
||||||
|
description: "Run a packer build"
|
||||||
|
parameters:
|
||||||
|
template:
|
||||||
|
description: |
|
||||||
|
The name of the packer template file
|
||||||
|
type: string
|
||||||
|
default: packer.json
|
||||||
|
args:
|
||||||
|
description: |
|
||||||
|
Arguments to pass to the packer build command
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: "Run a packer build"
|
||||||
|
command: packer build << parameters.args >> << parameters.template >>
|
||||||
|
no_output_timeout: 30m
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mod-tidy-check:
|
mod-tidy-check:
|
||||||
executor: golang
|
executor: golang
|
||||||
@ -688,49 +718,45 @@ jobs:
|
|||||||
publish-packer-mainnet:
|
publish-packer-mainnet:
|
||||||
description: build and push AWS IAM and DigitalOcean droplet.
|
description: build and push AWS IAM and DigitalOcean droplet.
|
||||||
executor:
|
executor:
|
||||||
name: packer/default
|
name: packer
|
||||||
packer-version: 1.6.6
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: "."
|
at: "."
|
||||||
- packer/build:
|
- packer_build:
|
||||||
template: tools/packer/lotus.pkr.hcl
|
template: tools/packer/lotus.pkr.hcl
|
||||||
args: "-var ci_workspace_bins=./linux -var lotus_network=mainnet -var git_tag=$CIRCLE_TAG"
|
args: "-var ci_workspace_bins=./linux -var lotus_network=mainnet -var git_tag=$CIRCLE_TAG"
|
||||||
publish-packer-calibrationnet:
|
publish-packer-calibrationnet:
|
||||||
description: build and push AWS IAM and DigitalOcean droplet.
|
description: build and push AWS IAM and DigitalOcean droplet.
|
||||||
executor:
|
executor:
|
||||||
name: packer/default
|
name: packer
|
||||||
packer-version: 1.6.6
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: "."
|
at: "."
|
||||||
- packer/build:
|
- packer_build:
|
||||||
template: tools/packer/lotus.pkr.hcl
|
template: tools/packer/lotus.pkr.hcl
|
||||||
args: "-var ci_workspace_bins=./linux-calibrationnet -var lotus_network=calibrationnet -var git_tag=$CIRCLE_TAG"
|
args: "-var ci_workspace_bins=./linux-calibrationnet -var lotus_network=calibrationnet -var git_tag=$CIRCLE_TAG"
|
||||||
publish-packer-butterflynet:
|
publish-packer-butterflynet:
|
||||||
description: build and push AWS IAM and DigitalOcean droplet.
|
description: build and push AWS IAM and DigitalOcean droplet.
|
||||||
executor:
|
executor:
|
||||||
name: packer/default
|
name: packer
|
||||||
packer-version: 1.6.6
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: "."
|
at: "."
|
||||||
- packer/build:
|
- packer_build:
|
||||||
template: tools/packer/lotus.pkr.hcl
|
template: tools/packer/lotus.pkr.hcl
|
||||||
args: "-var ci_workspace_bins=./linux-butterflynet -var lotus_network=butterflynet -var git_tag=$CIRCLE_TAG"
|
args: "-var ci_workspace_bins=./linux-butterflynet -var lotus_network=butterflynet -var git_tag=$CIRCLE_TAG"
|
||||||
publish-packer-snap:
|
publish-packer-snap:
|
||||||
description: build packer image with snap. mainnet only.
|
description: build packer image with snap. mainnet only.
|
||||||
executor:
|
executor:
|
||||||
name: packer/default
|
name: packer
|
||||||
packer-version: 1.6.6
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: "."
|
at: "."
|
||||||
- packer/build:
|
- packer_build:
|
||||||
template: tools/packer/lotus-snap.pkr.hcl
|
template: tools/packer/lotus-snap.pkr.hcl
|
||||||
publish-dockerhub:
|
publish-dockerhub:
|
||||||
description: publish to dockerhub
|
description: publish to dockerhub
|
||||||
|
Loading…
Reference in New Issue
Block a user