Skip to content

Commit 9dd34e2

Browse files
committed
Update the workflow and the version
1 parent f8bbcc8 commit 9dd34e2

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

.github/workflows/main.yml

+29-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,22 @@ on:
55
branches:
66
- 'master'
77

8+
env:
9+
VERSION: '15-3.4'
10+
DOCKER_IMAGE: 'ghcr.io/jobrad-gmbh/postgis:15-3.4-alpine'
11+
812
jobs:
913
build-docker:
10-
runs-on: ubuntu-20.04
14+
strategy:
15+
matrix:
16+
include:
17+
- runner: ubuntu-20.04
18+
platform: linux/amd64
19+
suffix: amd64
20+
- runner: Linux-ARM64-2C-8GB
21+
platform: linux/arm64
22+
suffix: arm64
23+
runs-on: ${{ matrix.runner }}
1124
steps:
1225
- uses: actions/checkout@v3
1326

@@ -18,8 +31,20 @@ jobs:
1831
uses: docker/build-push-action@v5
1932
with:
2033
context: .
21-
file: 13-3.4/alpine/Dockerfile
22-
platforms: linux/amd64,linux/arm64
34+
file: ${{ env.VERSION }}/alpine/Dockerfile
35+
platforms: ${{ matrix.platform }}
2336
push: true
2437
tags: |
25-
ghcr.io/jobrad-gmbh/postgis:13-3.4-alpine
38+
${{ env.DOCKER_IMAGE }}-${{ matrix.suffix }}
39+
provenance: false
40+
41+
combine-docker:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: int128/docker-manifest-create-action@v2
45+
with:
46+
tags: ${{ env.DOCKER_IMAGE }}
47+
sources: |
48+
${{ env.DOCKER_IMAGE }}-amd64
49+
${{ env.DOCKER_IMAGE }}-arm64
50+
push: true

0 commit comments

Comments
 (0)