diff options
Diffstat (limited to 'jjb/include-docker-push.sh')
-rw-r--r-- | jjb/include-docker-push.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/jjb/include-docker-push.sh b/jjb/include-docker-push.sh index 7b42fcd73..0acc221ea 100644 --- a/jjb/include-docker-push.sh +++ b/jjb/include-docker-push.sh @@ -26,7 +26,13 @@ if [[ $PROJECT =~ $SEARCH ]] ; then docker tag $REPO_PATH:latest $REPO_PATH:$STAGING_TAG; docker tag $REPO_PATH:latest $REPO_PATH:$SNAPSHOT_TAG; - docker push $REPO_PATH:latest; + if [ "$VERSION" == "1.0.0" ]; then + docker tag $REPO_PATH:latest $REPO_PATH:1.0-STAGING-latest; + docker push $REPO_PATH:1.0-STAGING-latest; + else + docker push $REPO_PATH:latest; + fi + docker push $REPO_PATH:$STAGING_TAG; docker push $REPO_PATH:$SNAPSHOT_TAG; else @@ -38,7 +44,13 @@ else docker tag $REPO_PATH:latest $REPO_PATH:$STAGING_TAG; docker tag $REPO_PATH:latest $REPO_PATH:$SNAPSHOT_TAG; - docker push $REPO_PATH:latest; + if [ "$VERSION" == "1.0.0" ]; then + docker tag $REPO_PATH:latest $REPO_PATH:1.0-STAGING-latest; + docker push $REPO_PATH:1.0-STAGING-latest; + else + docker push $REPO_PATH:latest; + fi + docker push $REPO_PATH:$SNAPSHOT_TAG; docker push $REPO_PATH:$STAGING_TAG; fi |