Skip to content

Commit bfb0e0a

Browse files
committed
Update only latest
1 parent 9fae6a2 commit bfb0e0a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

hooks/post_push

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ set -e
55
# Parse image name for repo name and major tag version
66
tagStart=$(expr index "$IMAGE_NAME" :)
77
repoName=${IMAGE_NAME:0:tagStart-1}
8-
majorVer=${IMAGE_NAME:tagStart:1}
9-
10-
# Tag and push image with <major>
11-
echo "Tagging and pushing" ${repoName}:${majorVer}
12-
docker tag $IMAGE_NAME ${repoName}:${majorVer}
13-
docker push ${repoName}:${majorVer}
148

159
# Tag and push image with latest
1610
echo "Tagging and pushing" ${repoName}:latest

0 commit comments

Comments
 (0)