make work with go gen
This commit is contained in:
parent
ab02ca7e38
commit
f68b43a526
@ -774,6 +774,7 @@ jobs:
|
|||||||
docker push filecoin/lotus:$CIRCLE_TAG
|
docker push filecoin/lotus:$CIRCLE_TAG
|
||||||
docker push filecoin/lotus-all-in-one:$CIRCLE_TAG
|
docker push filecoin/lotus-all-in-one:$CIRCLE_TAG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2.1
|
version: 2.1
|
||||||
ci:
|
ci:
|
||||||
|
@ -735,6 +735,45 @@ jobs:
|
|||||||
- packer/build:
|
- packer/build:
|
||||||
template: tools/packer/lotus.pkr.hcl
|
template: tools/packer/lotus.pkr.hcl
|
||||||
args: "-var ci_workspace_bins=./linux-nerpanet -var lotus_network=nerpanet -var git_tag=$CIRCLE_TAG"
|
args: "-var ci_workspace_bins=./linux-nerpanet -var lotus_network=nerpanet -var git_tag=$CIRCLE_TAG"
|
||||||
|
publish-dockerhub:
|
||||||
|
description: publish to dockerhub
|
||||||
|
machine:
|
||||||
|
image: ubuntu-2004:202010-01
|
||||||
|
parameters:
|
||||||
|
tag:
|
||||||
|
type: string
|
||||||
|
default: latest
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: dockerhub login
|
||||||
|
command: echo $DOCKERHUB_PASSWORD | docker login --username $DOCKERHUB_USERNAME --password-stdin
|
||||||
|
- run:
|
||||||
|
name: docker build
|
||||||
|
command: |
|
||||||
|
docker build --target lotus -t filecoin/lotus:<< parameters.tag >> -f Dockerfile.lotus .
|
||||||
|
docker build --target lotus-all-in-one -t filecoin/lotus-all-in-one:<< parameters.tag >> -f Dockerfile.lotus .
|
||||||
|
if [["[[ ! -z $CIRCLE_SHA1 ]]"]]; then
|
||||||
|
docker build --target lotus -t filecoin/lotus:$CIRCLE_SHA1 -f Dockerfile.lotus .
|
||||||
|
docker build --target lotus-all-in-one -t filecoin/lotus-all-in-one:$CIRCLE_SHA1 -f Dockerfile.lotus .
|
||||||
|
fi
|
||||||
|
if [["[[ ! -z $CIRCLE_TAG ]]"]]; then
|
||||||
|
docker build --target lotus -t filecoin/lotus:$CIRCLE_TAG -f Dockerfile.lotus .
|
||||||
|
docker build --target lotus-all-in-one -t filecoin/lotus-all-in-one:$CIRCLE_TAG -f Dockerfile.lotus .
|
||||||
|
fi
|
||||||
|
- run:
|
||||||
|
name: docker push
|
||||||
|
command: |
|
||||||
|
docker push filecoin/lotus:<< parameters.tag >>
|
||||||
|
docker push filecoin/lotus-all-in-one:<< parameters.tag >>
|
||||||
|
if [["[[ ! -z $CIRCLE_SHA1 ]]"]]; then
|
||||||
|
docker push filecoin/lotus:$CIRCLE_SHA1
|
||||||
|
docker push filecoin/lotus-all-in-one:$CIRCLE_SHA1
|
||||||
|
fi
|
||||||
|
if [["[[ ! -z $CIRCLE_TAG ]]"]]; then
|
||||||
|
docker push filecoin/lotus:$CIRCLE_TAG
|
||||||
|
docker push filecoin/lotus-all-in-one:$CIRCLE_TAG
|
||||||
|
fi
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2.1
|
version: 2.1
|
||||||
@ -887,6 +926,16 @@ workflows:
|
|||||||
tags:
|
tags:
|
||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
- publish-dockerhub:
|
||||||
|
name: publish-dockerhub
|
||||||
|
tag: stable
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore:
|
||||||
|
- /.*/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
|
||||||
nightly:
|
nightly:
|
||||||
triggers:
|
triggers:
|
||||||
@ -900,3 +949,6 @@ workflows:
|
|||||||
- publish-snapcraft:
|
- publish-snapcraft:
|
||||||
name: publish-snapcraft-nightly
|
name: publish-snapcraft-nightly
|
||||||
channel: edge
|
channel: edge
|
||||||
|
- publish-dockerhub:
|
||||||
|
name: publish-dockerhub-nightly
|
||||||
|
tag: nightly
|
||||||
|
Loading…
Reference in New Issue
Block a user