Skip to content

A Docker to be able to cross compile Golang packages with enabled cgo together with GoReleaser

License

Notifications You must be signed in to change notification settings

iotaledger/goreleaser-cgo-cross-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

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.21.0
  • GoReleaser: 1.19.2
  • Docker: 24.0.5

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] \
  iotaledger/goreleaser-cgo-cross-compiler:latest goreleaser --snapshot --clean

About

A Docker to be able to cross compile Golang packages with enabled cgo together with GoReleaser

Resources

License

Stars

Watchers

Forks