-
Notifications
You must be signed in to change notification settings - Fork 17
241 lines (239 loc) · 8.55 KB
/
package-builders.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
---
# Builds our package-builder Docker iamges used to build Native Binary Packages (RPM, DEB)
name: Package Builders
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- 'master'
pull_request:
concurrency:
group: package-builders-${{ github.ref }}
cancel-in-progress: true
jobs:
build-check:
name: Build Check
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
strategy:
matrix:
os:
- almalinux8
- almalinux9
- amazonlinux2
- amazonlinux2023
- centos-stream8
- centos-stream9
- centos7
- debian10
- debian11
- debian12
- fedora37
- fedora38
- opensusetumbleweed
- opensuse15.4
- opensuse15.5
- oraclelinux8
- oraclelinux9
- ubuntu20.04
- ubuntu22.04
- ubuntu23.04
max-parallel: 8
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Buildx
uses: docker/setup-buildx-action@v2
- name: Docker Build
uses: docker/build-push-action@v4
with:
load: false
push: false
file: ./package-builders/Dockerfile.${{ matrix.os }}
tags: netdata/package-builders:${{ matrix.os }}
pr-checks:
name: PR Checks
if: github.event_name == 'pull_request'
needs: build-check
runs-on: ubuntu-latest
strategy:
matrix:
os:
- almalinux8
- almalinux9
- amazonlinux2
- amazonlinux2023
- centos-stream8
- centos-stream9
- centos7
- debian10
- debian11
- debian12
- fedora37
- fedora38
- opensusetumbleweed
- opensuse15.4
- opensuse15.5
- oraclelinux8
- oraclelinux9
- ubuntu20.04
- ubuntu22.04
- ubuntu23.04
platform:
- linux/i386
- linux/arm/v7
- linux/arm64/v8
exclude: # don’t try to run these specific combinations
- {os: almalinux8, platform: linux/i386}
- {os: almalinux8, platform: linux/arm/v7}
- {os: almalinux9, platform: linux/i386}
- {os: almalinux9, platform: linux/arm/v7}
- {os: amazonlinux2, platform: linux/i386}
- {os: amazonlinux2, platform: linux/arm/v7}
- {os: amazonlinux2023, platform: linux/i386}
- {os: amazonlinux2023, platform: linux/arm/v7}
- {os: centos-stream8, platform: linux/i386}
- {os: centos-stream8, platform: linux/arm/v7}
- {os: centos-stream9, platform: linux/i386}
- {os: centos-stream9, platform: linux/arm/v7}
- {os: centos7, platform: linux/i386}
- {os: centos7, platform: linux/arm/v7}
- {os: centos7, platform: linux/arm64/v8}
- {os: fedora37, platform: linux/i386}
- {os: fedora37, platform: linux/arm/v7}
- {os: fedora38, platform: linux/i386}
- {os: fedora38, platform: linux/arm/v7}
- {os: opensuse15.4, platform: linux/i386}
- {os: opensuse15.4, platform: linux/arm/v7}
- {os: opensuse15.5, platform: linux/i386}
- {os: opensuse15.5, platform: linux/arm/v7}
- {os: opensusetumbleweed, platform: linux/i386}
- {os: opensusetumbleweed, platform: linux/arm/v7}
- {os: oraclelinux8, platform: linux/i386}
- {os: oraclelinux8, platform: linux/arm/v7}
- {os: oraclelinux9, platform: linux/i386}
- {os: oraclelinux9, platform: linux/arm/v7}
- {os: ubuntu20.04, platform: linux/i386}
- {os: ubuntu22.04, platform: linux/i386}
- {os: ubuntu23.04, platform: linux/i386}
max-parallel: 8
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup QEMU
if: matrix.platform != 'linux/i386'
uses: docker/setup-qemu-action@v2
- name: Setup Buildx
uses: docker/setup-buildx-action@v2
- name: Build
uses: docker/build-push-action@v4
with:
platforms: ${{ matrix.platform }}
load: false
push: false
file: ./package-builders/Dockerfile.${{ matrix.os }}
tags: netdata/package-builders:${{ matrix.os }}
publish:
name: Publish Images
if: github.event_name == 'push' || (github.event_name == 'schedule' && github.repository == 'netdata/helper-images')
runs-on: ubuntu-latest
strategy:
matrix:
os:
- almalinux8
- almalinux9
- amazonlinux2
- amazonlinux2023
- centos-stream8
- centos-stream9
- centos7
- debian10
- debian11
- debian12
- fedora37
- fedora38
- opensusetumbleweed
- opensuse15.4
- opensuse15.5
- oraclelinux8
- oraclelinux9
- ubuntu20.04
- ubuntu22.04
- ubuntu23.04
include:
- os: almalinux8
arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le
- os: almalinux9
arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le,linux/s390x
- os: amazonlinux2
arches: linux/amd64,linux/arm64/v8 # No other platforms
- os: amazonlinux2023
arches: linux/amd64,linux/arm64/v8 # No other platforms
- os: centos-stream8
arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le
- os: centos-stream9
arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le,linux/s390x
- os: centos7
arches: linux/amd64 # Unable to provide alternate arches due to our dependence on OKay.
- os: debian10
arches: linux/amd64,linux/i386,linux/arm/v7,linux/arm64/v8 # possibly linux/ppc64le,linuxs390x,linux/mips64le,linux/arm/v5
- os: debian11
arches: linux/amd64,linux/i386,linux/arm/v7,linux/arm64/v8 # possibly linux/ppc64le,linuxs390x,linux/mips64le,linux/arm/v5
- os: debian12
arches: linux/amd64,linux/i386,linux/arm/v7,linux/arm64/v8 # possibly linux/ppc64le,linuxs390x,linux/mips64le,linux/arm/v5
- os: fedora37
arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le,linux/s390x
- os: fedora38
arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le,linux/s390x
- os: opensuse15.4
arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le
- os: opensuse15.5
arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le
- os: opensusetumbleweed
arches: linux/amd64,linux/arm64/v8 # possibly linux/arm/v7, linux/ppc64le
- os: oraclelinux8
arches: linux/amd64,linux/arm64/v8 # No other platforms
- os: oraclelinux9
arches: linux/amd64,linux/arm64/v8 # No other platforms
- os: ubuntu20.04
arches: linux/amd64,linux/arm/v7,linux/arm64/v8 # possibly linux/ppc64le,linux/s390x
- os: ubuntu22.04
arches: linux/amd64,linux/arm/v7,linux/arm64/v8 # possibly linux/ppc64le,linux/s390x
- os: ubuntu23.04
arches: linux/amd64,linux/arm/v7,linux/arm64/v8 # possibly linux/ppc64le,linux/s390x
max-parallel: 8
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Buildx
uses: docker/setup-buildx-action@v2
- name: Docker Hub Login
uses: docker/login-action@v2
with:
username: netdatabot
password: ${{ secrets.DOCKER_PASSWORD }}
- name: GitHub Container Registry Login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Quay.io Login
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.NETDATABOT_QUAY_USERNAME }}
password: ${{ secrets.NETDATABOT_QUAY_TOKEN }}
- name: Docker Build
uses: docker/build-push-action@v4
with:
platforms: ${{ matrix.arches }}
push: true
file: ./package-builders/Dockerfile.${{ matrix.os }}
tags: netdata/package-builders:${{ matrix.os }},ghcr.io/netdata/package-builders:${{ matrix.os }},quay.io/netdata/package-builders:${{ matrix.os }}