modify .circleci/template.yml
This commit is contained in:
parent
e1c2cf446e
commit
fee69a889b
@ -1037,8 +1037,8 @@ workflows:
|
|||||||
dockerfile: Dockerfile.lotus
|
dockerfile: Dockerfile.lotus
|
||||||
path: .
|
path: .
|
||||||
repo: lotus-dev
|
repo: lotus-dev
|
||||||
target: lotus-all-in-one
|
|
||||||
tag: '${CIRCLE_SHA1:0:8}'
|
tag: '${CIRCLE_SHA1:0:8}'
|
||||||
|
target: lotus-all-in-one
|
||||||
- build-and-push-image:
|
- build-and-push-image:
|
||||||
dockerfile: Dockerfile.lotus
|
dockerfile: Dockerfile.lotus
|
||||||
path: .
|
path: .
|
||||||
|
@ -628,6 +628,11 @@ jobs:
|
|||||||
default: "latest"
|
default: "latest"
|
||||||
description: A comma-separated string containing docker image tags to build and push (default = latest)
|
description: A comma-separated string containing docker image tags to build and push (default = latest)
|
||||||
|
|
||||||
|
target:
|
||||||
|
type: string
|
||||||
|
default: "lotus-all-in-one"
|
||||||
|
description: Docker target to build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: Confirm that environment variables are set
|
name: Confirm that environment variables are set
|
||||||
@ -667,6 +672,7 @@ jobs:
|
|||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
<<#parameters.extra-build-args>><<parameters.extra-build-args>><</parameters.extra-build-args>> \
|
<<#parameters.extra-build-args>><<parameters.extra-build-args>><</parameters.extra-build-args>> \
|
||||||
|
--target <<parameters.target>> \
|
||||||
-f <<parameters.path>>/<<parameters.dockerfile>> \
|
-f <<parameters.path>>/<<parameters.dockerfile>> \
|
||||||
$docker_tag_args \
|
$docker_tag_args \
|
||||||
<<parameters.path>>
|
<<parameters.path>>
|
||||||
@ -862,6 +868,13 @@ workflows:
|
|||||||
path: .
|
path: .
|
||||||
repo: lotus-dev
|
repo: lotus-dev
|
||||||
tag: '${CIRCLE_SHA1:0:8}'
|
tag: '${CIRCLE_SHA1:0:8}'
|
||||||
|
target: lotus-all-in-one
|
||||||
|
- build-and-push-image:
|
||||||
|
dockerfile: Dockerfile.lotus
|
||||||
|
path: .
|
||||||
|
repo: lotus-test
|
||||||
|
tag: '${CIRCLE_SHA1:0:8}'
|
||||||
|
target: lotus-test
|
||||||
- publish-packer-mainnet:
|
- publish-packer-mainnet:
|
||||||
requires:
|
requires:
|
||||||
- build-all
|
- build-all
|
||||||
|
Loading…
Reference in New Issue
Block a user