Skip to content

Commit ac158db

Browse files
authored
fix: alpine tags shouldn't be SharedTags (#713)
1 parent a48d4a5 commit ac158db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dockerhub_doc_config_update.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ function print_official_image_file() {
171171

172172
# Print them all
173173
{
174+
if [[ "${distro}" == "${default_alpine_image}" ]]; then
175+
# Append -alpine to each shared tag
176+
all_tags="${all_tags}, ${all_shared_tags//, /-alpine, }-alpine"
177+
fi
174178
echo "Tags: ${all_tags}"
175-
if [[ "${os}" == "windows" ]] || [[ "${distro}" == "${default_linux_image}" ]] || [[ "${distro}" == "${default_alpine_image}" ]]; then
176-
if [[ ${os} == "alpine" ]]; then
177-
# Append -alpine to each shared tag
178-
all_shared_tags="${all_shared_tags//, /-alpine, }-alpine"
179-
fi
179+
if [[ "${os}" == "windows" ]] || [[ "${distro}" == "${default_linux_image}" ]]; then
180180
echo "SharedTags: ${all_shared_tags}"
181181
fi
182182
echo "Architectures: ${arches}"

0 commit comments

Comments
 (0)