Skip to content

chore(deps): pin bcgov/action-oc-runner action to 1003366 (#296) #165

chore(deps): pin bcgov/action-oc-runner action to 1003366 (#296)

chore(deps): pin bcgov/action-oc-runner action to 1003366 (#296) #165

Workflow file for this run

name: Merge
on:
push:
branches: [main]
paths-ignore:
- ".github/ISSUE_TEMPLATE/*"
- "**.md"
workflow_dispatch:
concurrency:
group: test-prod
cancel-in-progress: false
permissions:
packages: write
jobs:
vars:
name: Set Variables
outputs:
pr: ${{ steps.pr.outputs.pr }}
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
# Get PR number for squash merges to main
- name: PR Number
id: pr
uses: bcgov/action-get-pr@21f9351425cd55a98e869ee28919a512aa30647d # v0.0.1
deploy-test:
name: Deploy (TEST)
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.deployer.yml@d9b3d32fb3f03c4699c2dce83ddfff042cd31a1f # v1.0.0
secrets:
oc_namespace: ${{ secrets.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
environment: test
params: --set global.autoscaling=true --set rctool.pdb.enabled=true --set frontend.pdb.enabled=true --set-string frontend.gunicorn.logLevel=debug
promote-test:
name: Promote Images
needs: [deploy-test, vars]
runs-on: ubuntu-24.04
strategy:
matrix:
package: [frontend, rctool]
timeout-minutes: 1
steps:
- uses: shrink/actions-docker-registry-tag@f04afd0559f66b288586792eb150f45136a927fa # v4
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.package }}
tags: test
target: ${{ needs.vars.outputs.pr }}
deploy-prod:
name: Deploy (PROD)
needs: [vars, deploy-test]
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.deployer.yml@d9b3d32fb3f03c4699c2dce83ddfff042cd31a1f # v1.0.0
secrets:
oc_namespace: ${{ secrets.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
environment: prod
params: --set global.autoscaling=true --set rctool.pdb.enabled=true --set frontend.pdb.enabled=true
promote-prod:
name: Promote Images
needs: [deploy-prod, vars]
runs-on: ubuntu-24.04
strategy:
matrix:
package: [frontend, rctool]
timeout-minutes: 1
steps:
- uses: shrink/actions-docker-registry-tag@f04afd0559f66b288586792eb150f45136a927fa # v4
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.package }}
tags: prod
target: ${{ needs.vars.outputs.pr }}