diff options
author | chriseth <chris@ethereum.org> | 2017-03-17 01:13:34 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-03-17 01:13:34 +0800 |
commit | 806b39db022403dd4022f268f5226f5c55388faa (patch) | |
tree | 07f1d6d52adb4854354d6d1212713a6e0f09be84 /scripts/docker_deploy.sh | |
parent | 58334cf4ac1cf61e5296b82ada48a2eb690ed369 (diff) | |
download | dexon-solidity-806b39db022403dd4022f268f5226f5c55388faa.tar.gz dexon-solidity-806b39db022403dd4022f268f5226f5c55388faa.tar.zst dexon-solidity-806b39db022403dd4022f268f5226f5c55388faa.zip |
Specify docker entry point and only run release on tags.
Diffstat (limited to 'scripts/docker_deploy.sh')
-rwxr-xr-x | scripts/docker_deploy.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/docker_deploy.sh b/scripts/docker_deploy.sh index d2810a3e..0abde840 100755 --- a/scripts/docker_deploy.sh +++ b/scripts/docker_deploy.sh @@ -10,13 +10,11 @@ then docker tag ethereum/solc:build ethereum/solc:nightly-"$version"-"$TRAVIS_COMMIT" docker push ethereum/solc:nightly-"$version"-"$TRAVIS_COMMIT"; docker push ethereum/solc:nightly; -elif [ "$TRAVIS_BRANCH" = "release" ] -then - docker tag ethereum/solc:build ethereum/solc:stable; - docker push ethereum/solc:stable; elif [ "$TRAVIS_TAG" = v"$version" ] then + docker tag ethereum/solc:build ethereum/solc:stable; docker tag ethereum/solc:build ethereum/solc:"$version"; + docker push ethereum/solc:stable; docker push ethereum/solc:"$version"; else echo "Not publishing docker image from branch $TRAVIS_BRANCH or tag $TRAVIS_TAG" |