Skip to content

Update the workflow and the version #7

Update the workflow and the version

Update the workflow and the version #7

Workflow file for this run

name: Build Test Deploy
on:
push:
branches:
- 'master'
env:
VERSION: '15-3.4'
DOCKER_IMAGE: 'ghcr.io/jobrad-gmbh/postgis:${VERSION}-alpine'
jobs:
build-docker:
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
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
context: .
file: ${{ env.VERSION }}/alpine/Dockerfile
platforms: ${{ matrix.platform }}
push: true
tags: |
${{ 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