From 8908ca9795a0eedf4aa1e7eaf4f625604b1792bc Mon Sep 17 00:00:00 2001 From: Levi Zitting Date: Sat, 8 Aug 2026 09:30:04 -0500 Subject: [PATCH 1/2] feat: promote released images through infrastructure PRs --- .github/workflows/release.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 431f878..d187703 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,3 +45,39 @@ jobs: with: version: ${{ needs.release.outputs.release-version }} secrets: inherit + + promote-staging: + needs: + - release + - docker + if: ${{ needs.release.outputs.new-release-published == 'true' }} + uses: glitchedmob/infra-gha/.github/workflows/kustomize-image-pr.yml@main + with: + deployment-repository: sgfdevs/infra-k8s-apps + kustomization-path: src/k8s/apps/sgf.dev/staging + image: ghcr.io/sgfdevs/sgf.dev + image-tag: ${{ needs.release.outputs.release-version }} + source-ref: v${{ needs.release.outputs.release-version }} + promotion-id: staging + auto-merge: true + github-app-id: "4527359" + secrets: + github-app-private-key: ${{ secrets.INFRA_AUTOMATION_APP_PRIVATE_KEY }} + + promote-production: + needs: + - release + - docker + - promote-staging + if: ${{ needs.release.outputs.new-release-published == 'true' }} + uses: glitchedmob/infra-gha/.github/workflows/kustomize-image-pr.yml@main + with: + deployment-repository: sgfdevs/infra-k8s-apps + kustomization-path: src/k8s/apps/sgf.dev/production + image: ghcr.io/sgfdevs/sgf.dev + image-tag: ${{ needs.release.outputs.release-version }} + source-ref: v${{ needs.release.outputs.release-version }} + promotion-id: production + github-app-id: "4527359" + secrets: + github-app-private-key: ${{ secrets.INFRA_AUTOMATION_APP_PRIVATE_KEY }} From a57d4f4c51bcdbd91cad7a5b41c83e4c21b62734 Mon Sep 17 00:00:00 2001 From: Levi Zitting Date: Sat, 8 Aug 2026 09:41:16 -0500 Subject: [PATCH 2/2] build: pin image promotion workflow release --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d187703..11bffb2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,7 @@ jobs: - release - docker if: ${{ needs.release.outputs.new-release-published == 'true' }} - uses: glitchedmob/infra-gha/.github/workflows/kustomize-image-pr.yml@main + uses: glitchedmob/infra-gha/.github/workflows/kustomize-image-pr.yml@v0.8.0 with: deployment-repository: sgfdevs/infra-k8s-apps kustomization-path: src/k8s/apps/sgf.dev/staging @@ -70,7 +70,7 @@ jobs: - docker - promote-staging if: ${{ needs.release.outputs.new-release-published == 'true' }} - uses: glitchedmob/infra-gha/.github/workflows/kustomize-image-pr.yml@main + uses: glitchedmob/infra-gha/.github/workflows/kustomize-image-pr.yml@v0.8.0 with: deployment-repository: sgfdevs/infra-k8s-apps kustomization-path: src/k8s/apps/sgf.dev/production