aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/docker_deploy.sh
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-02-13 19:28:39 +0800
committerchriseth <c@ethdev.com>2017-02-13 19:28:39 +0800
commitbc3e3fd7090def8f4da81c44b31a86c1fda19414 (patch)
tree2fa8c2bd4d18f7c6b18d1f5a5867f77d0e7757cb /scripts/docker_deploy.sh
parent11c4a7b6426a0bd29b7b17ab21e7415b651a98ee (diff)
downloaddexon-solidity-bc3e3fd7090def8f4da81c44b31a86c1fda19414.tar
dexon-solidity-bc3e3fd7090def8f4da81c44b31a86c1fda19414.tar.gz
dexon-solidity-bc3e3fd7090def8f4da81c44b31a86c1fda19414.tar.bz2
dexon-solidity-bc3e3fd7090def8f4da81c44b31a86c1fda19414.tar.lz
dexon-solidity-bc3e3fd7090def8f4da81c44b31a86c1fda19414.tar.xz
dexon-solidity-bc3e3fd7090def8f4da81c44b31a86c1fda19414.tar.zst
dexon-solidity-bc3e3fd7090def8f4da81c44b31a86c1fda19414.zip
Fix test expressions.
Diffstat (limited to 'scripts/docker_deploy.sh')
-rwxr-xr-xscripts/docker_deploy.sh27
1 files changed, 16 insertions, 11 deletions
diff --git a/scripts/docker_deploy.sh b/scripts/docker_deploy.sh
index fe157044..d2810a3e 100755
--- a/scripts/docker_deploy.sh
+++ b/scripts/docker_deploy.sh
@@ -4,15 +4,20 @@ set -e
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
version=$(grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? $(dirname "$0")/../CMakeLists.txt)
-if [ "$TRAVIS_BRANCH" == "develop" ]; then
- docker tag ethereum/solc:build ethereum/solc:nightly;
- 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:"$version";
- docker push ethereum/solc:"$version";
+if [ "$TRAVIS_BRANCH" = "develop" ]
+then
+ docker tag ethereum/solc:build ethereum/solc:nightly;
+ 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:"$version";
+ docker push ethereum/solc:"$version";
+else
+ echo "Not publishing docker image from branch $TRAVIS_BRANCH or tag $TRAVIS_TAG"
fi