diff --git a/.github/workflows/build-images-releases.yml b/.github/workflows/build-images-releases.yml index 1533a8c1264..6a30ccec3f2 100644 --- a/.github/workflows/build-images-releases.yml +++ b/.github/workflows/build-images-releases.yml @@ -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' @@ -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