Skip to content

Commit cd129ef

Browse files
williamdesDeepSeek
andcommitted
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 <noreply@deepseek.com> Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent d607ea3 commit cd129ef

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/scripts/mirror-official-images.sh‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ decide() {
134134
IFS=$'\t' read -r result_dst_digest result_dst_version result_dst_created <<<"${dst_meta}"
135135
fi
136136

137+
# Only refresh tags that already exist here: publishing new ones would
138+
# attract more users to a namespace that is meant to be deprecated
137139
if [ -z "${result_dst_digest}" ]; then
138-
result_action="copy"
139-
result_reason="missing from the target"
140+
result_action="skip"
141+
result_reason="not published here, not creating it"
140142
return 0
141143
fi
142144

‎.github/workflows/mirror-official-images.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Mirror official images
22

33
# Mirrors docker.io/library/phpmyadmin into docker.io/phpmyadmin/phpmyadmin.
4+
# Only tags already published there are refreshed, no new tags are created.
45
# See https://github.com/phpmyadmin/docker/issues/363
56

67
permissions:

0 commit comments

Comments
 (0)