Skip to content

Commit 16824c0

Browse files
authored
feat: add justfile recipe to retag broken NVIDIA ghcr images (#2228)
1 parent e4ae28b commit 16824c0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: Justfile

+25
Original file line numberDiff line numberDiff line change
@@ -866,3 +866,28 @@ tag-images image_name="" default_tag="" tags="":
866866

867867
# Show Images
868868
${PODMAN} images
869+
870+
# Examples:
871+
# > just retag-nvidia-on-ghcr stable-daily stable-daily-41.20250126.3 0
872+
# > just retag-nvidia-on-ghcr latest latest-41.20250228.1 0
873+
#
874+
# working_tag: The tag of the most recent known good image (e.g., stable-daily-41.20250126.3)
875+
# stream: One of latest, stable-daily, stable or gts
876+
# dry_run: Only print the skopeo commands instead of running them
877+
#
878+
# First generate a PAT with package write access (https://github.com/settings/tokens)
879+
# and set $GITHUB_USERNAME and $GITHUB_PAT environment variables
880+
881+
# Retag images on GHCR
882+
[group('Admin')]
883+
retag-nvidia-on-ghcr working_tag="" stream="" dry_run="1":
884+
#!/bin/bash
885+
set -euxo pipefail
886+
skopeo="echo === skopeo"
887+
if [[ "{{ dry_run }}" -ne 1 ]]; then
888+
echo "$GITHUB_PAT" | podman login -u $GITHUB_USERNAME --password-stdin ghcr.io
889+
skopeo="skopeo"
890+
fi
891+
for image in bluefin-nvidia-open bluefin-nvidia bluefin-dx-nvidia bluefin-dx-nvidia-open; do
892+
$skopeo copy docker://ghcr.io/ublue-os/${image}:{{ working_tag }} docker://ghcr.io/ublue-os/${image}:{{ stream }}
893+
done

0 commit comments

Comments
 (0)