@@ -168,6 +168,47 @@ jobs:
168
168
cd image-digest/
169
169
find -type f | sort | xargs -d '\n' cat
170
170
171
+ tarball-release :
172
+ name : Create Tetragon Tarball Releases
173
+ runs-on : ${{ matrix.os }}
174
+ strategy :
175
+ matrix :
176
+ include :
177
+ # We use the native arch build
178
+ - os : ubuntu-22.04
179
+ arch : amd64
180
+ - os : buildjet-2vcpu-ubuntu-2204-arm
181
+ arch : arm64
182
+ steps :
183
+ # https://github.com/docker/setup-buildx-action
184
+ - name : Set up Docker Buildx
185
+ uses : docker/setup-buildx-action@2a1a44ac4aa01993040736bd95bb470da1a38365 # v2.8.0
186
+
187
+ - name : Checkout Source Code
188
+ uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
189
+ with :
190
+ persist-credentials : false
191
+ fetch-depth : 0
192
+ submodules : true
193
+
194
+ - name : Set up Go
195
+ uses : actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
196
+
197
+ - name : Getting version tag
198
+ id : tag
199
+ run : echo "tag=$(make version)" >> $GITHUB_OUTPUT
200
+
201
+ - name : Generate Tetragon Tarball
202
+ run : make tarball-release
203
+
204
+ # Cache tarball releases for later
205
+ - name : Save tetragon-${{ steps.tag.outputs.tag }}-${{ matrix.arch }}.tar.gz Tarball
206
+ uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
207
+ with :
208
+ name : tetragon-${{ steps.tag.outputs.tag }}-${{ matrix.arch }}
209
+ path : release/
210
+ retention-days : 1
211
+
171
212
draft-github-release :
172
213
name : Create Release
173
214
if : github.repository == 'cilium/tetragon'
@@ -180,11 +221,24 @@ jobs:
180
221
- name : Set up Go
181
222
uses : actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
182
223
224
+ - name : Getting version tag
225
+ id : tag
226
+ run : echo "tag=$(make version)" >> $GITHUB_OUTPUT
227
+
183
228
- name : Generate tetra CLI artifacts
184
229
run : make cli-release
185
230
186
- - name : Generate Tetragon Tarball
187
- run : make tarball-release
231
+ - name : Retrieve tetragon-${{ steps.tag.outputs.tag }}-amd64.tar.gz
232
+ uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
233
+ with :
234
+ name : tetragon-${{ steps.tag.outputs.tag }}-amd64
235
+ path : release
236
+
237
+ - name : Retrieve tetragon-${{ steps.tag.outputs.tag }}-arm64.tar.gz
238
+ uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
239
+ with :
240
+ name : tetragon-${{ steps.tag.outputs.tag }}-arm64
241
+ path : release
188
242
189
243
- name : Create Release
190
244
id : create_release
0 commit comments