-
Notifications
You must be signed in to change notification settings - Fork 1
103 lines (91 loc) · 2.8 KB
/
build.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
name: Build
on:
push:
branches:
- "**"
pull_request:
schedule:
- cron: "20 10 * * *" # everyday at 10:20 UTC
workflow_dispatch:
permissions:
actions: read
contents: read
jobs:
diagnostics:
name: "Diagnostics"
runs-on: ubuntu-latest
steps:
- name: Check GitHub Status
uses: crazy-max/ghaction-github-status@df4d23a4977438215339cf0fafceda8d9af8a0e5 # tag=v4.0.0
with:
overall_threshold: major
packages_threshold: major_outage
- name: Dump context
uses: crazy-max/ghaction-dump-context@8b55fa205ab4530d36f787a4de1009afaaa7f3b4 # tag=v2.1.0
build-image-alpine:
name: "Alpine"
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
- linux/ppc64le
- linux/s390x
base_tag:
- 18-alpine3.18
- 20-alpine3.18
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # tag=v4.1.0
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # tag=v3.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # tag=v3.0.0
- name: Build image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # tag=v5.0.0
with:
build-args: BASE_TAG=${{ matrix.base_tag }}
context: .
file: ./Dockerfile-alpine
outputs: type=docker,dest=/tmp/image.tar
platforms: ${{ matrix.platform }}
push: false
build-image-debian:
name: "Debian"
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
# - linux/arm/v6
- linux/arm/v7
- linux/arm64
- linux/ppc64le
- linux/s390x
base_tag:
- 18-bookworm-slim
- 20-bookworm-slim
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # tag=v4.1.0
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # tag=v3.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # tag=v3.0.0
- name: Build image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # tag=v5.0.0
with:
build-args: BASE_TAG=${{ matrix.base_tag }}
context: .
file: ./Dockerfile-debian
outputs: type=docker,dest=/tmp/image.tar
platforms: ${{ matrix.platform }}
push: false