push lotus-gateway to docker hub
This commit is contained in:
parent
75d78de336
commit
c079a12c9c
@ -730,26 +730,32 @@ jobs:
|
|||||||
name: docker build
|
name: docker build
|
||||||
command: |
|
command: |
|
||||||
docker build --target lotus -t filecoin/lotus:<< parameters.tag >> -f Dockerfile.lotus .
|
docker build --target lotus -t filecoin/lotus:<< parameters.tag >> -f Dockerfile.lotus .
|
||||||
|
docker build --target lotus-gateway -t filecoin/lotus-gateway:<< parameters.tag >> -f Dockerfile.lotus .
|
||||||
docker build --target lotus-all-in-one -t filecoin/lotus-all-in-one:<< 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
|
if [[ ! -z $CIRCLE_SHA1 ]]; then
|
||||||
docker build --target lotus -t filecoin/lotus:$CIRCLE_SHA1 -f Dockerfile.lotus .
|
docker build --target lotus -t filecoin/lotus:$CIRCLE_SHA1 -f Dockerfile.lotus .
|
||||||
|
docker build --target lotus-gateway -t filecoin/lotus-gateway:$CIRCLE_SHA1 -f Dockerfile.lotus .
|
||||||
docker build --target lotus-all-in-one -t filecoin/lotus-all-in-one:$CIRCLE_SHA1 -f Dockerfile.lotus .
|
docker build --target lotus-all-in-one -t filecoin/lotus-all-in-one:$CIRCLE_SHA1 -f Dockerfile.lotus .
|
||||||
fi
|
fi
|
||||||
if [[ ! -z $CIRCLE_TAG ]]; then
|
if [[ ! -z $CIRCLE_TAG ]]; then
|
||||||
docker build --target lotus -t filecoin/lotus:$CIRCLE_TAG -f Dockerfile.lotus .
|
docker build --target lotus -t filecoin/lotus:$CIRCLE_TAG -f Dockerfile.lotus .
|
||||||
|
docker build --target lotus-gateway -t filecoin/lotus-gateway:$CIRCLE_TAG -f Dockerfile.lotus .
|
||||||
docker build --target lotus-all-in-one -t filecoin/lotus-all-in-one:$CIRCLE_TAG -f Dockerfile.lotus .
|
docker build --target lotus-all-in-one -t filecoin/lotus-all-in-one:$CIRCLE_TAG -f Dockerfile.lotus .
|
||||||
fi
|
fi
|
||||||
- run:
|
- run:
|
||||||
name: docker push
|
name: docker push
|
||||||
command: |
|
command: |
|
||||||
docker push filecoin/lotus:<< parameters.tag >>
|
docker push filecoin/lotus:<< parameters.tag >>
|
||||||
|
docker push filecoin/lotus-gateway:<< parameters.tag >>
|
||||||
docker push filecoin/lotus-all-in-one:<< parameters.tag >>
|
docker push filecoin/lotus-all-in-one:<< parameters.tag >>
|
||||||
if [[ ! -z $CIRCLE_SHA1 ]]; then
|
if [[ ! -z $CIRCLE_SHA1 ]]; then
|
||||||
docker push filecoin/lotus:$CIRCLE_SHA1
|
docker push filecoin/lotus:$CIRCLE_SHA1
|
||||||
|
docker push filecoin/lotus-gateway:$CIRCLE_SHA1
|
||||||
docker push filecoin/lotus-all-in-one:$CIRCLE_SHA1
|
docker push filecoin/lotus-all-in-one:$CIRCLE_SHA1
|
||||||
fi
|
fi
|
||||||
if [[ ! -z $CIRCLE_TAG ]]; then
|
if [[ ! -z $CIRCLE_TAG ]]; then
|
||||||
docker push filecoin/lotus:$CIRCLE_TAG
|
docker push filecoin/lotus:$CIRCLE_TAG
|
||||||
|
docker push filecoin/lotus-gateway:$CIRCLE_TAG
|
||||||
docker push filecoin/lotus-all-in-one:$CIRCLE_TAG
|
docker push filecoin/lotus-all-in-one:$CIRCLE_TAG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user