generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (60 loc) · 1.76 KB
/
prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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