Skip to content

Commit e758d21

Browse files
committed
Fix duplicate tag issues
1 parent b0f22a1 commit e758d21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ add_tag() {
4040
# Add tags for each Docker organization
4141
for org in $DOCKER_ORGANIZATIONS; do
4242
if [ -n "$GITHUB_REF_NAME" ] && [ "$RELEASE_TYPE" == "pr" ]; then
43+
# Only add PR-specific tags
4344
tags+=("${org}/${DOCKER_REPOSITORY_NAME}:${full_tag}-${GITHUB_REF_NAME}")
4445
break
45-
fi
46-
tags+=("${org}/${DOCKER_REPOSITORY_NAME}:${full_tag}")
47-
if [ -n "$GITHUB_REF_NAME" ] && [ "${full_tag}" != "$RELEASE_TYPE" ] && [ "$GITHUB_REF_TYPE" == "tag" ]; then
48-
tags+=("${org}/${DOCKER_REPOSITORY_NAME}:${full_tag}-${GITHUB_REF_NAME}")
46+
else
47+
# Add the regular tag
48+
tags+=("${org}/${DOCKER_REPOSITORY_NAME}:${full_tag}")
4949
fi
5050
done
5151
}

0 commit comments

Comments
 (0)