generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 923 Bytes
/
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
name: PR
on:
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
# PR open and close use the same group, allowing only one at a time
group: pr-${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
# https://github.com/bcgov-nr/action-builder-ghcr
Databases:
if: "!github.event.pull_request.head.repo.fork"
permissions:
packages: write
runs-on: ubuntu-22.04
strategy:
matrix:
package: [postgres, postgis]
tag: [12, 13, 14, 15]
steps:
- uses: bcgov-nr/action-builder-ghcr@v1.3.0
with:
build_context: database/${{ matrix.package }}/${{ matrix.tag }}
keep_versions: 50
package: ${{ matrix.package }}
tag: ${{ matrix.tag }}
token: ${{ github.token }}
triggers: database/${{ matrix.package}}/${{ matrix.triggers }}
timeout-minutes: 10