release: pg_idkit 0.2.4 #60
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: container | |
on: | |
push: | |
branches: | |
# Run on auto-generated release PRs | |
- prep-release-v[0-9]+\.[0-9]+\.[0-9]+ | |
tags: | |
- v[0-9]+\.[0-9]+\.[0-9]+ | |
jobs: | |
build: | |
permissions: | |
contents: read | |
packages: write | |
runs-on: ${{ matrix.config.gh.runner }} | |
strategy: | |
matrix: | |
config: | |
- triple: x86_64-unknown-linux-musl | |
gh: | |
runner: ubuntu-22.04 | |
container: | |
arch: amd64 | |
pgrx_pg_version: pg15 | |
pg_version: "15.8" | |
os_version: alpine3.20.3 | |
- triple: x86_64-unknown-linux-musl | |
gh: | |
runner: ubuntu-22.04 | |
container: | |
arch: amd64 | |
pgrx_pg_version: pg16 | |
pg_version: "16.4" | |
os_version: alpine3.20.3 | |
- triple: x86_64-unknown-linux-musl | |
gh: | |
runner: ubuntu-22.04 | |
container: | |
arch: amd64 | |
pgrx_pg_version: pg17 | |
pg_version: "17.0" | |
os_version: alpine3.20.3 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker/setup-qemu-action@v3 | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-get,just | |
- name: Registry login | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build container image (prerelease) | |
if: ${{ startsWith(github.ref, 'refs/heads/prep-release') }} | |
run: just build-image push-image | |
env: | |
CONTAINER_IMAGE_ARCH: ${{ matrix.config.container.arch }} | |
PGRX_PG_VERSION: ${{ matrix.config.container.pgrx_pg_version }} | |
POSTGRES_IMAGE_VERSION: ${{ matrix.config.container.pg_version }} | |
POSTGRES_OS_IMAGE_VERSION: ${{ matrix.config.container.os_version }} | |
PGIDKIT_IMAGE_TAG_SUFFIX: "-prerelease" | |
- name: Build container image | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
run: just build-image push-image | |
env: | |
CONTAINER_IMAGE_ARCH: ${{ matrix.config.container.arch }} | |
PGRX_PG_VERSION: ${{ matrix.config.container.pgrx_pg_version }} | |
POSTGRES_IMAGE_VERSION: ${{ matrix.config.container.pg_version }} | |
POSTGRES_OS_IMAGE_VERSION: ${{ matrix.config.container.os_version }} |