Skip to content

Setup

Setup #5

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
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