This is a Docker container to be able to cross compile Golang packages with enabled cgo together with GoReleaser.
- Windows (amd64)
- Linux (amd64, ARM64)
- macOS (amd64) No CGO support
- GoLang: 1.21.0
- GoReleaser: 1.19.2
- Docker: 24.0.5
docker run --rm --privileged \
-v $PWD:/go/src/github.com/[project]/[repo] \
-v /var/run/docker.sock:/var/run/docker.sock \
-w /go/src/github.com/[project]/[repo] \
iotaledger/goreleaser-cgo-cross-compiler:latest goreleaser --snapshot --clean