Skip to content

Commit

Permalink
release: build arm64 release tarball
Browse files Browse the repository at this point in the history
Signed-off-by: Djalal Harouni <tixxdz@gmail.com>
  • Loading branch information
tixxdz committed Sep 19, 2023
1 parent 0aa80fc commit 5b25a7c
Showing 1 changed file with 56 additions and 2 deletions.
58 changes: 56 additions & 2 deletions .github/workflows/build-images-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,47 @@ jobs:
cd image-digest/
find -type f | sort | xargs -d '\n' cat
tarball-release:
name: Create Tetragon Tarball Releases
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# We use the native arch build
- os: ubuntu-22.04
arch: amd64
- os: buildjet-2vcpu-ubuntu-2204-arm
arch: arm64
steps:
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@2a1a44ac4aa01993040736bd95bb470da1a38365 # v2.8.0

- name: Checkout Source Code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
persist-credentials: false
fetch-depth: 0
submodules: true

- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1

- name: Getting version tag
id: tag
run: echo "tag=$(make version)" >> $GITHUB_OUTPUT

- name: Generate Tetragon Tarball
run: make tarball-release

# Cache tarball releases for later
- name: Save tetragon-${{ steps.tag.outputs.tag }}-${{ matrix.arch }}.tar.gz Tarball
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: tetragon-${{ steps.tag.outputs.tag }}-${{ matrix.arch }}
path: release/
retention-days: 1

draft-github-release:
name: Create Release
if: github.repository == 'cilium/tetragon'
Expand All @@ -180,11 +221,24 @@ jobs:
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1

- name: Getting version tag
id: tag
run: echo "tag=$(make version)" >> $GITHUB_OUTPUT

- name: Generate tetra CLI artifacts
run: make cli-release

- name: Generate Tetragon Tarball
run: make tarball-release
- name: Retrieve tetragon-${{ steps.tag.outputs.tag }}-amd64.tar.gz
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: tetragon-${{ steps.tag.outputs.tag }}-amd64
path: release

- name: Retrieve tetragon-${{ steps.tag.outputs.tag }}-arm64.tar.gz
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: tetragon-${{ steps.tag.outputs.tag }}-arm64
path: release

- name: Create Release
id: create_release
Expand Down

0 comments on commit 5b25a7c

Please sign in to comment.