From 24385c9c687cc0a835c9d172e0bb00862cac69df Mon Sep 17 00:00:00 2001 From: Jens L Date: Wed, 31 May 2023 16:48:14 +0200 Subject: [PATCH] ci: build outpost binaries statically linked (#5823) --- .github/workflows/ci-outpost.yml | 1 + .github/workflows/release-publish.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/ci-outpost.yml b/.github/workflows/ci-outpost.yml index 4159e76f2..a8b6004bc 100644 --- a/.github/workflows/ci-outpost.yml +++ b/.github/workflows/ci-outpost.yml @@ -135,4 +135,5 @@ jobs: set -x export GOOS=${{ matrix.goos }} export GOARCH=${{ matrix.goarch }} + export CGO_ENABLED=0 go build -tags=outpost_static_embed -v -o ./authentik-outpost-${{ matrix.type }}_${{ matrix.goos }}_${{ matrix.goarch }} ./cmd/${{ matrix.type }} diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index b54a4a956..28ba16a16 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -123,6 +123,7 @@ jobs: set -x export GOOS=${{ matrix.goos }} export GOARCH=${{ matrix.goarch }} + export CGO_ENABLED=0 go build -tags=outpost_static_embed -v -o ./authentik-outpost-${{ matrix.type }}_${{ matrix.goos }}_${{ matrix.goarch }} ./cmd/${{ matrix.type }} - name: Upload binaries to release uses: svenstaro/upload-release-action@v2