We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6bf3c5 commit 36f323cCopy full SHA for 36f323c
hooks/post_push
@@ -5,12 +5,11 @@ set -e
5
# A space-separated list of additional tags to place on this image.
6
additionalTags=(7.1-stretch 71-stretch)
7
8
-# Parse image name for repo name.
9
-tagStart=$(expr index "$IMAGE_NAME" :)
10
-repoName=${IMAGE_NAME:0:tagStart-1}
11
-
12
# Tag and push image for each additional tag
13
for tag in ${additionalTags[@]}; do
14
- docker tag $IMAGE_NAME ${repoName}:${tag}
15
- docker push ${repoName}:${tag}
+ echo "Tagging {$IMAGE_NAME} as ${DOCKER_REPO}:${tag}"
+ docker tag $IMAGE_NAME ${DOCKER_REPO}:${tag}
+
+ echo "Pushing ${DOCKER_REPO}:${tag}"
+ docker push ${DOCKER_REPO}:${tag}
16
done
0 commit comments