the following hooks/post_push script:
if [[ 'staging' = $SOURCE_BRANCH ]]; then
echo "CACHE_TAG: $CACHE_TAG"
echo "IMAGE_NAME: $IMAGE_NAME"
echo "DOCKER_REPO: $DOCKER_REPO"
results in (as seen from build logs in Docker Cloud):
IMAGE_NAME: correct value
DOCKER_REPO: correct value
with empty CACHE_TAG
For now we are parsing and splitting the IMAGE_NAME on “:” … but this does not seem to be a stable solution …