summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2020-03-26 09:44:32 +0000
committerefiacor <fiachra.corcoran@est.tech>2020-03-26 10:01:49 +0000
commit80fc2e2e2d65942cce66e1a1439f4f3be39871af (patch)
tree50870224dfa3b414e314cdbfbeeee6954dbd8632
parent6a543746fd5178718ba8fbb2e79c58292c3a3c46 (diff)
Fix docker tagging on services
Change-Id: Icdc95a0874dd1ccca7dda9b2547113dfcbc627f2 Signed-off-by: efiacor <fiachra.corcoran@est.tech> Issue-ID: DCAEGEN2-2168
-rw-r--r--jjb/dcaegen2/dcaegen2-services-docker-python-subprojects.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/jjb/dcaegen2/dcaegen2-services-docker-python-subprojects.yaml b/jjb/dcaegen2/dcaegen2-services-docker-python-subprojects.yaml
index be95546f1..1c2dd5984 100644
--- a/jjb/dcaegen2/dcaegen2-services-docker-python-subprojects.yaml
+++ b/jjb/dcaegen2/dcaegen2-services-docker-python-subprojects.yaml
@@ -57,7 +57,16 @@
stream: master
branch: 'master'
- gerrit-docker-verify
- - gerrit-docker-merge
+ - gerrit-docker-merge:
+ post_docker_build_script: |
+ #!/bin/bash
+ 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-whitesource-scan:
build-timeout: 120
submodule-timeout: 30