forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (42 loc) · 1.2 KB
/
docker.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
51
52
53
54
55
56
57
58
name: Docker
on:
pull_request:
paths:
- 'docker/**'
- '.github/workflows/docker.yml'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
docker_builds:
strategy:
fail-fast: false
matrix:
include:
- name: alpine-small
arch: linux/amd64
- name: alpine-normal
arch: linux/amd64
- name: ubuntu-small
arch: linux/amd64
- name: ubuntu-small
arch: linux/arm64
- name: ubuntu-full
arch: linux/amd64
- name: ubuntu-full
arch: linux/arm64
name: ${{ matrix.name }}-${{ matrix.arch }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Build
shell: bash -l {0}
run: |
docker run --rm --privileged linuxkit/binfmt:v0.8
cd docker/${{ matrix.name }}
./build.sh --platform ${{ matrix.arch }}