Skip to content

Commit 5b25a7c

Browse files
committed
release: build arm64 release tarball
Signed-off-by: Djalal Harouni <[email protected]>
1 parent 0aa80fc commit 5b25a7c

File tree

1 file changed

+56
-2
lines changed

1 file changed

+56
-2
lines changed

.github/workflows/build-images-releases.yml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,47 @@ jobs:
168168
cd image-digest/
169169
find -type f | sort | xargs -d '\n' cat
170170
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+
171212
draft-github-release:
172213
name: Create Release
173214
if: github.repository == 'cilium/tetragon'
@@ -180,11 +221,24 @@ jobs:
180221
- name: Set up Go
181222
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
182223

224+
- name: Getting version tag
225+
id: tag
226+
run: echo "tag=$(make version)" >> $GITHUB_OUTPUT
227+
183228
- name: Generate tetra CLI artifacts
184229
run: make cli-release
185230

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
188242

189243
- name: Create Release
190244
id: create_release

0 commit comments

Comments
 (0)