13
13
build-release-linux :
14
14
runs-on : ubuntu-24.04${{ matrix.platform == 'arm64' && '-arm' || '' }}
15
15
container :
16
- image : ubuntu:22 .04
16
+ image : ubuntu:24 .04
17
17
strategy :
18
18
matrix :
19
19
platform :
@@ -65,10 +65,10 @@ jobs:
65
65
make install && \
66
66
cd ../.. && \
67
67
rm -fr bpftool && \
68
- curl -LO https://ziglang.org/builds/zig-linux-$(uname -m)- ${ZIG_VERSION}.tar.xz && \
69
- tar -xaf zig-linux-$(uname -m)- ${ZIG_VERSION}.tar.xz && \
70
- rm -v zig-linux-$(uname -m)- ${ZIG_VERSION}.tar.xz && \
71
- cd zig-linux-$(uname -m)- ${ZIG_VERSION} && \
68
+ curl -LO https://ziglang.org/builds/zig-linux-" $(uname -m)"-" ${ZIG_VERSION}" .tar.xz && \
69
+ tar -xaf zig-linux-" $(uname -m)"-" ${ZIG_VERSION}" .tar.xz && \
70
+ rm -v zig-linux-" $(uname -m)"-" ${ZIG_VERSION}" .tar.xz && \
71
+ cd zig-linux-" $(uname -m)"-" ${ZIG_VERSION}" && \
72
72
cp -v zig /usr/bin && \
73
73
find lib -exec cp --parents {} /usr/ \; && \
74
74
cd .. && \
@@ -97,12 +97,12 @@ jobs:
97
97
- name : Upload Artifacts
98
98
uses : actions/upload-artifact@v4
99
99
with :
100
- name : sysdig-release-${{ env.BUILD_VERSION }}-${{ matrix.release_arch }}
100
+ name : sysdig-release-${{ env.BUILD_VERSION }}-linux- ${{ matrix.release_arch }}
101
101
path : |
102
102
build/sysdig-${{ env.BUILD_VERSION }}*
103
103
104
- build-release-others-amd64 :
105
- name : build-release-others-amd64
104
+ build-release-others :
105
+ name : build-release-others
106
106
strategy :
107
107
matrix :
108
108
os : [windows-latest, macos-13, macos-14]
@@ -147,7 +147,7 @@ jobs:
147
147
- platform : arm64
148
148
base_arch : aarch64
149
149
release_arch : aarch64
150
- needs : [build-release-linux, sign-rpms, sign-debs ]
150
+ needs : [build-release-linux, sign-linux-packages ]
151
151
env :
152
152
REGISTRY : ghcr.io
153
153
SYSDIG_IMAGE_BASE : ghcr.io/draios/sysdig
@@ -158,12 +158,12 @@ jobs:
158
158
- name : Download artifacts aarch64
159
159
uses : actions/download-artifact@v4
160
160
with :
161
- name : sysdig-release-${{ env.BUILD_VERSION }}-aarch64
161
+ name : sysdig-release-${{ env.BUILD_VERSION }}-linux- aarch64
162
162
163
163
- name : Download artifacts x86_64
164
164
uses : actions/download-artifact@v4
165
165
with :
166
- name : sysdig-release-${{ env.BUILD_VERSION }}-x86_64
166
+ name : sysdig-release-${{ env.BUILD_VERSION }}-linux- x86_64
167
167
168
168
- name : Set up Docker Buildx
169
169
uses : docker/setup-buildx-action@v3
@@ -185,44 +185,10 @@ jobs:
185
185
build-args :
186
186
BUILD_VERSION=${{ env.BUILD_VERSION }}
187
187
188
- sign-rpms :
189
- strategy :
190
- matrix :
191
- name : [amd64, arm64]
192
- include :
193
- - name : amd64
194
- arch : x86_64
195
- - name : arm64
196
- arch : aarch64
197
- needs : build-release-linux
198
- runs-on : ubuntu-latest
199
- env :
200
- KEY_ID : EC51E8C4
188
+ sign-linux-packages :
189
+ runs-on : ubuntu-24.04
201
190
container :
202
- image : fedora:39
203
- steps :
204
- - name : Install deps
205
- run : dnf install -y rpm-sign pinentry
206
- - name : Download artifacts
207
- uses : actions/download-artifact@v4
208
- with :
209
- name : sysdig-release-${{ env.BUILD_VERSION }}-${{ matrix.arch }}
210
- - name : Import private key
211
- env :
212
- PRIVATE_KEY : ${{ secrets.SYSDIG_REPO_SIGNING_KEY }}
213
- run : printenv PRIVATE_KEY | gpg --import -
214
- - name : Sign RPMs
215
- run : rpm --define "_gpg_name ${{ env.KEY_ID }}" --define "_binary_filedigest_algorithm 8" --addsign *.rpm
216
- - name : Check signature
217
- run : test "$(rpm -qpi *.rpm | awk '/Signature/' | grep -i none | wc -l)" -eq 0
218
- - name : Upload Signed RPMs
219
- uses : actions/upload-artifact@v4
220
- with :
221
- name : sysdig-release-${{ env.BUILD_VERSION }}-${{ matrix.arch }}-rpms
222
- path : " *.rpm"
223
-
224
- sign-debs :
225
- runs-on : ubuntu-latest
191
+ image : ubuntu:24.04
226
192
strategy :
227
193
matrix :
228
194
name : [amd64, arm64]
@@ -234,37 +200,44 @@ jobs:
234
200
needs : build-release-linux
235
201
env :
236
202
KEY_ID : EC51E8C4
237
- container :
238
- image : debian:bullseye-slim
239
203
steps :
240
204
- name : Install deps
241
- run : apt-get update && apt-get -y install dpkg-sig
205
+ run : apt update && apt -y install debsigs rpm
242
206
243
207
- name : Download artifacts
244
208
uses : actions/download-artifact@v4
245
209
with :
246
- name : sysdig-release-${{ env.BUILD_VERSION }}-${{ matrix.arch }}
210
+ name : sysdig-release-${{ env.BUILD_VERSION }}-linux- ${{ matrix.arch }}
247
211
248
212
- name : Import private key
249
213
env :
250
214
PRIVATE_KEY : ${{ secrets.SYSDIG_REPO_SIGNING_KEY }}
251
215
run : printenv PRIVATE_KEY | gpg --import -
252
216
253
217
- name : Sign DEBs
254
- run : dpkg-sig -k ${{ env.KEY_ID }} -s builder *.deb
218
+ run : debsigs --sign=origin --default-key="${{ env.KEY_ID }}" *.deb
219
+
220
+ - name : Check signature DEBs
221
+ run : debsigs --verify *.deb
222
+
223
+ - name : Sign RPMs
224
+ run : rpm --define "_gpg_name ${{ env.KEY_ID }}" --define "_binary_filedigest_algorithm 8" --addsign *.rpm
255
225
256
- - name : Check signature
257
- run : dpkg-sig --verify *.deb
226
+ - name : Check signature RPMs
227
+ run : test "$(rpm -qpi *.rpm | awk '/Signature/' | grep -i none | wc -l)" -eq 0
258
228
259
- - name : Upload Signed DEBs
229
+ - name : Upload Signed Packages
260
230
uses : actions/upload-artifact@v4
261
231
with :
262
- name : sysdig-release-${{ env.BUILD_VERSION }}-${{ matrix.arch }}-debs
263
- path : " *.deb"
232
+ name : sysdig-release-${{ env.BUILD_VERSION }}-linux-${{ matrix.arch }}
233
+ overwrite : true
234
+ path : |
235
+ *.deb
236
+ *.rpm
264
237
265
238
create-draft-release :
266
239
runs-on : ubuntu-latest
267
- needs : [push-container-image, build-release-linux, sign-rpms, sign-debs ]
240
+ needs : [push-container-image, build-release-linux, sign-linux-packages, build-release-others ]
268
241
steps :
269
242
- name : Download all artifacts
270
243
uses : actions/download-artifact@v4
0 commit comments