fix: adapt goreleaser for cross compilation (#1145)

This commit is contained in:
Jonas Plum
2025-09-02 23:43:33 +02:00
committed by GitHub
parent 27129f24d5
commit 06fdae4ab9
2 changed files with 10 additions and 8 deletions

View File

@@ -28,10 +28,12 @@ jobs:
registry: ghcr.io
username: "securitybrewery"
password: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
run: |
docker run --rm --privileged \
-v ${{ github.workspace }}:/workspace \
-v /var/run/docker.sock:/var/run/docker.sock \
-e CGO_ENABLED=1 \
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
ghcr.io/goreleaser/goreleaser-cross:latest \
release --clean

View File

@@ -6,7 +6,7 @@ before:
builds:
- env:
- CGO_ENABLED=0
- CGO_ENABLED=1
goos:
- linux
- darwin