summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gauld <agauld@att.com>2020-03-25 12:35:04 +0000
committerAndrew Gauld <agauld@att.com>2020-03-25 12:37:02 +0000
commitaf82c4227cb81bfcd185fe2bc6daaec77d632911 (patch)
treeb7cfa52078ee902d51e912e5eb2083ffeca07164
parenta3e7575dc20e04adc5001dc1990c098e5bb02b37 (diff)
Triple tag dcaegen2-platform py/docker images
Change-Id: Ic0760542b70992bf4d23cc9c889474bb36ad3fae Issue-ID: DCAEGEN2-2168 Signed-off-by: Andrew Gauld <agauld@att.com>
-rw-r--r--jjb/dcaegen2/dcaegen2-platform-docker-python-subprojects.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/jjb/dcaegen2/dcaegen2-platform-docker-python-subprojects.yaml b/jjb/dcaegen2/dcaegen2-platform-docker-python-subprojects.yaml
index 685582e51..8be8b8257 100644
--- a/jjb/dcaegen2/dcaegen2-platform-docker-python-subprojects.yaml
+++ b/jjb/dcaegen2/dcaegen2-platform-docker-python-subprojects.yaml
@@ -50,7 +50,16 @@
stream: all
branch: '*'
- gerrit-docker-verify
- - gerrit-docker-merge
+ - gerrit-docker-merge:
+ post_docker_build_script: |
+ set -uex -o pipefail
+ DOCKER_IMAGE_TAG2=${{DOCKER_IMAGE_TAG%-*}}
+ DNAME={container-snapshot-registry}/{docker-name}
+ docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:$DOCKER_IMAGE_TAG2
+ docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:latest
+ docker push $DNAME:$DOCKER_IMAGE_TAG2
+ docker push $DNAME:latest
+
- gerrit-maven-clm:
mvn-params: '-f {src-dir}'
stream: master