Skip to content

Commit

Permalink
modify .circleci/template.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense committed Jan 17, 2022
1 parent 5ccc714 commit 382be3f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -1002,8 +1002,8 @@ workflows:
dockerfile: Dockerfile.lotus
path: .
repo: lotus-dev
target: lotus-all-in-one
tag: '${CIRCLE_SHA1:0:8}'
target: lotus-all-in-one
- build-and-push-image:
dockerfile: Dockerfile.lotus
path: .
Expand Down
13 changes: 13 additions & 0 deletions .circleci/template.yml
Expand Up @@ -618,6 +618,11 @@ jobs:
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:
- run:
name: Confirm that environment variables are set
Expand Down Expand Up @@ -657,6 +662,7 @@ jobs:
docker build \
<<#parameters.extra-build-args>><<parameters.extra-build-args>><</parameters.extra-build-args>> \
--target <<parameters.target>> \
-f <<parameters.path>>/<<parameters.dockerfile>> \
$docker_tag_args \
<<parameters.path>>
Expand Down Expand Up @@ -832,6 +838,13 @@ workflows:
path: .
repo: lotus-dev
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:
requires:
- build-all
Expand Down

0 comments on commit 382be3f

Please sign in to comment.