PROD (dispatch) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PROD (dispatch) | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: Container tag; usually test, prod or PR number | |
default: test | |
required: true | |
type: string | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
permissions: {} | |
jobs: | |
deploy: | |
name: Deploy (PROD) | |
secrets: inherit | |
uses: ./.github/workflows/.deploy.yml | |
with: | |
aws_user_pools_web_client_id: 4bu2n8at3m32a2fqnvd4t06la1 | |
batch_client_rfsh_api_tkn_op_secret_name: fom-client-app-api | |
environment: prod | |
email_notify: [email protected] | |
logout_chain_url: https://logon7.gov.bc.ca/clp-cgi/logoff.cgi?retnow=1&returl=https://loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/logout?redirect_uri= | |
tag: ${{ inputs.tag }} | |
target: prod | |
url: fom.nrs.gov.bc.ca | |
images-backup: | |
name: Backup images (PROD) | |
continue-on-error: true # If no prod tags | |
needs: deploy | |
permissions: | |
packages: write | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
component: [api, admin, db, public] | |
steps: | |
- uses: shrink/actions-docker-registry-tag@v4 | |
with: | |
registry: ghcr.io | |
repository: ${{ github.repository }}/${{ matrix.component }} | |
target: prod | |
tags: prod-backup | |
images-promote: | |
name: Promote images (PROD) | |
needs: [images-backup] | |
permissions: | |
packages: write | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
component: [api, admin, db, public] | |
steps: | |
- uses: shrink/actions-docker-registry-tag@v4 | |
with: | |
registry: ghcr.io | |
repository: ${{ github.repository }}/${{ matrix.component }} | |
target: ${{ inputs.tag }} | |
tags: prod |