Skip to content

fix(ci): upgrade ghcr retention action to v3.1.0 - #303

Merged
fubuloubu merged 1 commit into
mainfrom
fix/ghcr-retention-v3.1.0
Oct 30, 2026
Merged

fubuloubu merged 1 commit into
mainfrom
fix/ghcr-retention-v3.1.0

Conversation

@fubuloubu

Copy link
Copy Markdown
Member

What I did

Upgrade snok/container-retention-policy from v3.0.1 to v3.1.0 in both prune-registry steps. v3.1.0 is what ApeWorX/ape already uses. This fixes two problems with v3.0.1:

  1. prune-registry fails on every main push (since at least 2026-09-24): invalid value '***' for '--token <TOKEN>': ... Must be $GITHUB_TOKEN, a classic personal access token (prefixed by 'ghp') or oauth token (prefixed by 'gho').
  2. No multi-arch child protection. Earlier prunes deleted the per-platform manifests behind silverback:stable, stable-slim and python3.X-stable[-slim]. The index tags still exist, but every child digest returns 404 (manifest unknown sha256:b20368f8…). That breaks docker pull ghcr.io/apeworx/silverback:stable, examples-stable-sdk, ApeWorX/build-action CI, uniswap-sdk "Bot Images", and any bot built with SilverbackLtd/build-action@v1 on the default stable SDK. v3.1.0 skips children of tagged multi-arch images.

Rebuild order

  1. Merge the ApeWorX/ape retention-tag fix first, then rebuild ape's python3.X-stable-slim images with a release. The build matrix here fails until those images exist again.
  2. Merge this PR.
  3. Republish silverback stable (release) to replace the broken manifests.

Note: this PR's own build / examples-stable-sdk jobs are expected to stay red until steps 1 and 3 are done. That failure isn't caused by this change.

@fubuloubu
fubuloubu merged commit fba5dbc into main Oct 30, 2026
66 of 79 checks passed
@fubuloubu
fubuloubu deleted the fix/ghcr-retention-v3.1.0 branch October 30, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant