From 29041f040cecf4d8fb68f013710fb98e400cd883 Mon Sep 17 00:00:00 2001 From: Eva Sarafianou Date: Mon, 4 May 2026 17:19:36 +0300 Subject: [PATCH] ci: mirror operator image to Gamewarden registry on tag push After pushing the operator image to Docker Hub, also publish it to the Gamewarden Harbor registry. Uses `docker buildx imagetools create` to copy the manifest server-side, preserving the source digest and any multi-arch manifests without pulling layers to the runner. Co-authored-by: Cursor --- .github/workflows/cd.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 97f53da73..7cc69efde 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -35,6 +35,22 @@ jobs: env: OPERATOR_IMAGE_TAG: ${{ github.ref_name }} + # Mirror the operator image to the Gamewarden Harbor registry on every + # tag push. + - name: cd/gamewarden-login + uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 + with: + registry: registry.gamewarden.io + username: ${{ secrets.GAMEWARDEN_REGISTRY_USERNAME }} + password: ${{ secrets.GAMEWARDEN_REGISTRY_PASSWORD }} + + - name: cd/push-operator-to-gamewarden + run: | + echo "Copying mattermost-operator:${{ github.ref_name }} to registry.gamewarden.io ..." + docker buildx imagetools create \ + --tag registry.gamewarden.io/mattermost/mattermost-operator:${{ github.ref_name }} \ + mattermost/mattermost-operator:${{ github.ref_name }} + build-fips: continue-on-error: true permissions: