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 fb190e2 commit 12e406fCopy full SHA for 12e406f
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 71 7.1-jessie 71-jessie)
7
8
-# Parse image name for repo name.
9
-tagStart=$(expr index "$IMAGE_NAME" :)
10
-repoName=${IMAGE_NAME:1: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