Skip to content

Commit

Permalink
Switch to composite workflow for building images
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed May 29, 2024
1 parent 3b8a4cc commit e6740e8
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' || '' }}

0 comments on commit e6740e8

Please sign in to comment.