generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.31 KB
/
pr-open.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
name: PR
on:
pull_request:
concurrency:
# Cancel in progress for PR open and close
group: ${{ github.event.number }}
cancel-in-progress: false
permissions:
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout
packages: write
pull-requests: write
jobs:
# https://github.com/bcgov-nr/action-builder-ghcr
#builds:
# name: Builds
# runs-on: ubuntu-24.04
# strategy:
# matrix:
# package: [backend, migrations]
# timeout-minutes: 10
# steps:
# - uses: bcgov-nr/[email protected]
# with:
# keep_versions: 50
# package: ${{ matrix.package }}
# tag: ${{ github.event.number }}
# tag_fallback: latest
# triggers: ('${{ matrix.package }}/')
# https://github.com/bcgov/quickstart-openshift-helpers
deploy-db:
#needs: [builds]
name: Deploys Database
uses: ./.github/workflows/.deployer.yml
with:
environment_name: dev
command: apply
working_directory: database
secrets: inherit
deploy-api:
name: Deploys API
needs: [deploy-db]
uses: ./.github/workflows/.deployer.yml
with:
environment_name: dev
command: apply
working_directory: api
tag: ${{github.event.number}}
secrets: inherit