Skip to content

Commit a3f471e

Browse files
committed
fix(docker hub): tag full semver without v prefix
1 parent b56db78 commit a3f471e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hooks/post_push

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ fi
1818

1919
major=${BASH_REMATCH[1]}
2020
minor=${BASH_REMATCH[2]}
21+
patch=${BASH_REMATCH[3]}
2122

2223
# Tag and push image for each additional tag
23-
for tag in {"$major","${major}.${minor}"}; do
24+
for tag in {"$major","${major}.${minor}","${major}.${minor}.${patch}"}; do
2425
echo "Tagging ${DOCKER_REPO}:${tag}"
2526
docker tag $IMAGE_NAME ${DOCKER_REPO}:${tag}
2627
docker push ${DOCKER_REPO}:${tag}

0 commit comments

Comments
 (0)