-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (54 loc) · 1.38 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
54
55
56
57
58
59
60
name: PR
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# QuickStart apps build from the same dirs as their Dockerfiles
build:
permissions:
packages: write
name: Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./
with:
package: backend
keep_versions: 10
repository: bcgov/quickstart-openshift
tag: ${{ github.event.number }}
# Anything can be retagged if a fallback image exists (e.g. test)
retag:
needs: [build]
permissions:
packages: write
name: Retag
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./
with:
package: backend
keep_versions: 10
repository: bcgov/quickstart-openshift
tag: ${{ github.event.number }}-retag
tag_fallback: test
triggers: ('backend/')
# FOM apps build from repo root, above their Dockerfiles (extra params)
advanced:
permissions:
packages: write
name: Advanced
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./
with:
package: api
build_context: .
build_file: api/Dockerfile
keep_versions: 10
repository: bcgov/nr-fom
tag: ${{ github.event.number }}