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 69958df commit fb190e2Copy full SHA for fb190e2
hooks/post_push
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+
3
+set -e
4
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}
16
+done
0 commit comments