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 b0f22a1 commit e758d21Copy full SHA for e758d21
build.sh
@@ -40,12 +40,12 @@ add_tag() {
40
# Add tags for each Docker organization
41
for org in $DOCKER_ORGANIZATIONS; do
42
if [ -n "$GITHUB_REF_NAME" ] && [ "$RELEASE_TYPE" == "pr" ]; then
43
+ # Only add PR-specific tags
44
tags+=("${org}/${DOCKER_REPOSITORY_NAME}:${full_tag}-${GITHUB_REF_NAME}")
45
break
- 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}")
+ else
+ # Add the regular tag
+ tags+=("${org}/${DOCKER_REPOSITORY_NAME}:${full_tag}")
49
fi
50
done
51
}
0 commit comments