-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1015 Bytes
/
docker.yml
File metadata and controls
36 lines (32 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Docker
on:
workflow_call:
jobs:
docker:
strategy:
matrix:
include:
- postgresql_version: 18
latest: true
- postgresql_version: 17
latest: false
- postgresql_version: 16
latest: false
- postgresql_version: 15
latest: false
- postgresql_version: 14
latest: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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: |
ghcr.io/tweedegolf/postgres:${{matrix.postgresql_version}}
${{ matrix.latest && 'ghcr.io/tweedegolf/postgres:latest' || '' }}