Skip to content

Commit 36f323c

Browse files
committed
Update hook with proper build vars
1 parent a6bf3c5 commit 36f323c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

hooks/post_push

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ set -e
55
# A space-separated list of additional tags to place on this image.
66
additionalTags=(7.1-stretch 71-stretch)
77

8-
# Parse image name for repo name.
9-
tagStart=$(expr index "$IMAGE_NAME" :)
10-
repoName=${IMAGE_NAME:0:tagStart-1}
11-
128
# Tag and push image for each additional tag
139
for tag in ${additionalTags[@]}; do
14-
docker tag $IMAGE_NAME ${repoName}:${tag}
15-
docker push ${repoName}:${tag}
10+
echo "Tagging {$IMAGE_NAME} as ${DOCKER_REPO}:${tag}"
11+
docker tag $IMAGE_NAME ${DOCKER_REPO}:${tag}
12+
13+
echo "Pushing ${DOCKER_REPO}:${tag}"
14+
docker push ${DOCKER_REPO}:${tag}
1615
done

0 commit comments

Comments
 (0)