diff options
author | RJ Catalano <rj@monax.io> | 2017-02-10 01:36:08 +0800 |
---|---|---|
committer | RJ Catalano <rj@monax.io> | 2017-02-10 01:36:08 +0800 |
commit | e9ae50dc5994a02119655eff4ed488fb3918d41f (patch) | |
tree | 7a49552bdb587f1d5fb7cb488ea15c3f80296f63 /scripts/docker_deploy.sh | |
parent | e884f7a4790c498e4b406e42aec5a7f7b4102368 (diff) | |
download | dexon-solidity-e9ae50dc5994a02119655eff4ed488fb3918d41f.tar.gz dexon-solidity-e9ae50dc5994a02119655eff4ed488fb3918d41f.tar.zst dexon-solidity-e9ae50dc5994a02119655eff4ed488fb3918d41f.zip |
clarify branches for docker to push on and clarify where to find cmakelists.txt
Signed-off-by: RJ Catalano <rj@monax.io>
Diffstat (limited to 'scripts/docker_deploy.sh')
-rwxr-xr-x | scripts/docker_deploy.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/docker_deploy.sh b/scripts/docker_deploy.sh index 870cca44..dcd03f9e 100755 --- a/scripts/docker_deploy.sh +++ b/scripts/docker_deploy.sh @@ -1,7 +1,7 @@ #!/usr/bin/env sh docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; -version=$(grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? $(dirname "$0")/CMakeLists.txt) +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" @@ -9,9 +9,8 @@ if [ "$TRAVIS_BRANCH" == "develop" ]; then 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_BRANCH" == v"$version"]; then docker tag ethereum/solc:build ethereum/solc:"$version"; - docker tag ethereum/solc:build ethereum/solc: - docker push ethereum/solc; docker push ethereum/solc:"$version"; - docker push ethereum/solc:stable; fi
\ No newline at end of file |