Skip to content

Commit

Permalink
Promote to PROD before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jan 17, 2024
1 parent 0a17aed commit 37368c7
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
codeql:
name: Semantic Code Analysis
name: CodeQL Analysis
runs-on: ubuntu-22.04
permissions:
actions: read
Expand Down Expand Up @@ -106,9 +106,24 @@ jobs:
# Run certbot with one-off job
oc create job "certbot-manual-$(date +%s)" --from=cronjob/certbot
image-promotions:
name: PROD Promotions
needs: [codeql, deploy-test]
runs-on: ubuntu-22.04
strategy:
matrix:
component: [api, admin, db, public]
steps:
- uses: shrink/actions-docker-registry-tag@v3
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.component }}
target: test
tags: prod

deploy-prod:
name: PROD Deploys
needs: [codeql, deploy-test]
needs: [image-promotions]
environment: prod
env:
ZONE: prod
Expand Down Expand Up @@ -168,18 +183,3 @@ jobs:
# Run certbot with one-off job
oc create job "certbot-manual-$(date +%s)" --from=cronjob/certbot
image-promotions:
name: Promote images to PROD
needs: [deploy-prod]
runs-on: ubuntu-22.04
strategy:
matrix:
component: [api, admin, db, public]
steps:
- uses: shrink/actions-docker-registry-tag@v3
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.component }}
target: test
tags: prod

0 comments on commit 37368c7

Please sign in to comment.