From cd129efa25afc7373aee8551663ad50ad49add3e Mon Sep 17 00:00:00 2001 From: William Desportes Date: Fri, 23 Oct 2026 19:10:38 +0200 Subject: [PATCH] Do not create tags that are missing from the legacy namespace Only refresh tags that are already published in docker.io/phpmyadmin/phpmyadmin. Publishing new tags there would attract more users to a namespace that is meant to be deprecated, so a tag that only exists in the official image is now skipped with the reason "not published here, not creating it". Co-Authored-By: DeepSeek Signed-off-by: William Desportes --- .github/scripts/mirror-official-images.sh | 6 ++++-- .github/workflows/mirror-official-images.yml | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) 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: