Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 886 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 886 Bytes

GoReleaser CGO Cross Compiler with musl

Software License

This is a Docker container to be able to cross compile Golang packages with enabled cgo together with GoReleaser.

Supported OS and architectures:

  • Windows (amd64)
  • Linux (amd64, ARM64)
  • macOS (amd64) No CGO support

Used versions

  • GoLang: 1.16.3
  • GoReleaser: 0.164.0
  • Docker: 20.10.6
  • MUSL: 2021-03-04 Release

Docker

Docker hub

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] \
  gohornet/goreleaser-cgo-cross-compiler:latest goreleaser --snapshot --rm-dist