Skip to content

Commit 6feec2e

Browse files
authored
feat: promote released images through infrastructure PRs (#114)
* feat: promote released images through infrastructure PRs * build: pin image promotion workflow release
1 parent 1c803a6 commit 6feec2e

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,39 @@ jobs:
4545
with:
4646
version: ${{ needs.release.outputs.release-version }}
4747
secrets: inherit
48+
49+
promote-staging:
50+
needs:
51+
- release
52+
- docker
53+
if: ${{ needs.release.outputs.new-release-published == 'true' }}
54+
uses: glitchedmob/infra-gha/.github/workflows/kustomize-image-pr.yml@v0.8.0
55+
with:
56+
deployment-repository: sgfdevs/infra-k8s-apps
57+
kustomization-path: src/k8s/apps/sgf.dev/staging
58+
image: ghcr.io/sgfdevs/sgf.dev
59+
image-tag: ${{ needs.release.outputs.release-version }}
60+
source-ref: v${{ needs.release.outputs.release-version }}
61+
promotion-id: staging
62+
auto-merge: true
63+
github-app-id: "4527359"
64+
secrets:
65+
github-app-private-key: ${{ secrets.INFRA_AUTOMATION_APP_PRIVATE_KEY }}
66+
67+
promote-production:
68+
needs:
69+
- release
70+
- docker
71+
- promote-staging
72+
if: ${{ needs.release.outputs.new-release-published == 'true' }}
73+
uses: glitchedmob/infra-gha/.github/workflows/kustomize-image-pr.yml@v0.8.0
74+
with:
75+
deployment-repository: sgfdevs/infra-k8s-apps
76+
kustomization-path: src/k8s/apps/sgf.dev/production
77+
image: ghcr.io/sgfdevs/sgf.dev
78+
image-tag: ${{ needs.release.outputs.release-version }}
79+
source-ref: v${{ needs.release.outputs.release-version }}
80+
promotion-id: production
81+
github-app-id: "4527359"
82+
secrets:
83+
github-app-private-key: ${{ secrets.INFRA_AUTOMATION_APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)