diff --git a/.github/scripts/mirror-official-images.sh b/.github/scripts/mirror-official-images.sh index 95407ae..662b844 100755 --- a/.github/scripts/mirror-official-images.sh +++ b/.github/scripts/mirror-official-images.sh @@ -134,9 +134,11 @@ decide() { IFS=$'\t' read -r result_dst_digest result_dst_version result_dst_created <<<"${dst_meta}" fi + # Only refresh tags that already exist here: publishing new ones would + # attract more users to a namespace that is meant to be deprecated if [ -z "${result_dst_digest}" ]; then - result_action="copy" - result_reason="missing from the target" + result_action="skip" + result_reason="not published here, not creating it" return 0 fi diff --git a/.github/workflows/mirror-official-images.yml b/.github/workflows/mirror-official-images.yml index 974e129..2b2fb14 100644 --- a/.github/workflows/mirror-official-images.yml +++ b/.github/workflows/mirror-official-images.yml @@ -1,6 +1,7 @@ name: Mirror official images # Mirrors docker.io/library/phpmyadmin into docker.io/phpmyadmin/phpmyadmin. +# Only tags already published there are refreshed, no new tags are created. # See https://github.com/phpmyadmin/docker/issues/363 permissions: