Skip to content

Setup

Setup #1

Workflow file for this run

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
builds:
name: Databases
if: "!github.event.pull_request.head.repo.fork"
runs-on: ubuntu-22.04
permissions:
packages: write
strategy:
matrix:
package: [postgres, postgis]
include:
- tag: [12, 13, 14, 15]
timeout-minutes: 10
steps:
- uses: bcgov-nr/action-builder-ghcr@v1.3.0
with:
keep_versions: 50
package: ${{ matrix.package }}
tag: ${{ matrix.tag }}
triggers: database/${{ matrix. package}}/${{ matrix.triggers }}