chore(cci): Tag PR image with PR-SHA combination
@@ -130,8 +130,8 @@ push_images: &push_images
done
elif [ -n "${CIRCLE_PR_NUMBER}" ]; then
for image in ${IMAGES_TO_PUSH} ; do
- docker tag syndesis/${image}:latest syndesis/${image}:${CIRCLE_PR_NUMBER}
- docker save syndesis/${image}:${CIRCLE_PR_NUMBER} | gzip > ${CIRCLE_WORKING_DIRECTORY}/${image}.tar.gz
+ docker tag syndesis/${image}:latest syndesis/${image}:${CIRCLE_PR_NUMBER}-${CIRCLE_SHA1}
+ docker save syndesis/${image}:${CIRCLE_PR_NUMBER}-${CIRCLE_SHA1} | gzip > ${CIRCLE_WORKING_DIRECTORY}/${image}.tar.gz
done
elif [[ "${CIRCLE_TAG}" =~ ^[0-9]+(\.[0-9]+){2} ]]; then
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
