🪞 ci: Mirror Published Images to a Legacy GHCR Namespace (#16214)

After a repository moves to another owner, images publish under the new owner while existing deployments still pull the old namespace. The merge job now copies each published tag to LEGACY_GHCR_OWNER when that variable and the LEGACY_GHCR_TOKEN secret are set, using GHCR cross-repo blob mounts. It stays off while the legacy owner matches the publishing owner, and never fails the build.
This commit is contained in:
Danny Avila 2026-09-22 14:08:44 -04:00 • committed by GitHub
parent a54cc32b31
commit 07e155338d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 50 additions and 0 deletions

View file

@ -57,3 +57,4 @@ jobs:
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
LEGACY_GHCR_TOKEN: ${{ secrets.LEGACY_GHCR_TOKEN }}