Skip to content

Commit

Permalink
chore(ci): Update merge workflow to deploy to prod. (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
fergmac authored Nov 26, 2024
1 parent 24ac1d3 commit 916bdae
Showing 1 changed file with 24 additions and 32 deletions.
56 changes: 24 additions & 32 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,27 @@ jobs:
tag: ${{ needs.init.outputs.pr }}
target: test

# deploy-prod:
# name: Deploy (prod)
# needs: [deploy-test, vars]
# uses: bcgov/quickstart-openshift-helpers/.github/workflows/[email protected]
# secrets:
# oc_namespace: ${{ secrets.OC_NAMESPACE }}
# oc_token: ${{ secrets.OC_TOKEN }}
# with:
# environment: prod
# params:
# --set backend.deploymentStrategy=RollingUpdate
# --set frontend.deploymentStrategy=RollingUpdate
# --set global.autoscaling=true
# --set frontend.pdb.enabled=true
# --set backend.pdb.enabled=true
# promote:
# name: Promote Images
# needs: [deploy-prod, vars]
# runs-on: ubuntu-latest
# permissions:
# packages: write
# strategy:
# matrix:
# package: [migrations, backend, frontend]
# timeout-minutes: 1
# steps:
# - uses: shrink/actions-docker-registry-tag@v4
# with:
# registry: ghcr.io
# repository: ${{ github.repository }}/${{ matrix.package }}
# target: ${{ needs.vars.outputs.pr }}
# tags: prod
deploys-prod:
name: Deploy (prod)
needs: [init, deploys-test]
secrets: inherit
uses: ./.github/workflows/.deploy.yml
with:
environment: prod
tag: ${{ needs.init.outputs.pr }}
target: prod

promote:
name: Promote Images
needs: [init, deploys-prod]
runs-on: ubuntu-latest
strategy:
matrix:
package: [minio, database, backend, frontend]
steps:
- uses: shrink/actions-docker-registry-tag@v4
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.package }}
target: ${{ needs.vars.outputs.pr }}
tags: prod

0 comments on commit 916bdae

Please sign in to comment.