Skip to content

Commit

Permalink
Update the workflow and the version
Browse files Browse the repository at this point in the history
  • Loading branch information
borna-ng committed Oct 10, 2024
1 parent f8bbcc8 commit 42c81be
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,22 @@ on:
branches:
- 'master'

env:
VERSION: '15-3.4'
DOCKER_IMAGE: 'ghcr.io/jobrad-gmbh/postgis:${VERSION}-alpine'

jobs:
build-docker:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- runner: ubuntu-20.04
platform: linux/amd64
suffix: amd64
- runner: Linux-ARM64-2C-8GB
platform: linux/arm64
suffix: arm64
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3

Expand All @@ -18,8 +31,20 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: 13-3.4/alpine/Dockerfile
platforms: linux/amd64,linux/arm64
file: ${{ env.VERSION }}/alpine/Dockerfile
platforms: ${{ matrix.platform }}
push: true
tags: |
ghcr.io/jobrad-gmbh/postgis:13-3.4-alpine
${{ env.DOCKER_IMAGE }}-${{ matrix.suffix }}
provenance: false

combine-docker:
runs-on: ubuntu-latest
steps:
- uses: int128/docker-manifest-create-action@v2
with:
tags: ${{ env.DOCKER_IMAGE }}
sources: |
${{ env.DOCKER_IMAGE }}-amd64
${{ env.DOCKER_IMAGE }}-arm64
push: true

0 comments on commit 42c81be

Please sign in to comment.