forked from postgis/docker-postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.2 KB
/
main.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build Test Deploy
on:
push:
branches:
- 'master'
env:
VERSION: '15-3.4'
DOCKER_IMAGE: 'ghcr.io/jobrad-gmbh/postgis:${{ env.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