From e6740e869eca377041548f706ddc04555dc7dd5d Mon Sep 17 00:00:00 2001 From: Ruben Nijveld Date: Wed, 29 May 2024 14:45:49 +0200 Subject: [PATCH] Switch to composite workflow for building images --- .github/workflows/docker.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 21d58d4..fdf7899 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,12 +14,19 @@ jobs: latest: false - postgresql_version: 14 latest: false - uses: "tweedegolf/actions-helpers/.github/workflows/container-image.yml@main" - with: - push: ${{ github.ref == 'refs/heads/main' }} - platforms: "linux/amd64,linux/arm64" - build-args: | + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + + - name: Build container image + uses: tweedegolf/build-container-image@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + push: ${{ github.ref == 'refs/heads/main' }} + platforms: "linux/amd64,linux/arm64" + build-args: | PG_MAJOR=${{matrix.postgresql_version}} - tags: | + tags: | ghcr.io/tweedegolf/postgres:${{matrix.postgresql_version}} ${{ matrix.latest && 'ghcr.io/tweedegolf/postgres:latest' || '' }}