Add 'latest' image tags 54/72554/1
authorInstrumental <jonathan.gathman@att.com>
Tue, 13 Nov 2018 15:54:12 +0000 (09:54 -0600)
committerInstrumental <jonathan.gathman@att.com>
Tue, 13 Nov 2018 15:54:16 +0000 (09:54 -0600)
Issue-ID: AAF-630
Change-Id: I3f1f481561800e7b57970165085e95b9ac17fca0
Signed-off-by: Instrumental <jonathan.gathman@att.com>
auth/docker/dpush.sh

index f793315..b81a338 100644 (file)
@@ -29,5 +29,6 @@ AAF_COMPONENTS="config agent core cass $(cat components) "
 for AAF_COMPONENT in ${AAF_COMPONENTS}; do
         # docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${OLD_VERSION}
         $DOCKER push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
-        # docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${NEW_VERSION}
+        docker tag ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}-latest
+        docker tag ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:latest
 done