Skip to content

Instantly share code, notes, and snippets.

@sj14
Created July 14, 2019 07:26
Show Gist options
  • Save sj14/b7d6f9c901a7df5d363447d90d0f7025 to your computer and use it in GitHub Desktop.
Save sj14/b7d6f9c901a7df5d363447d90d0f7025 to your computer and use it in GitHub Desktop.
Run goreleaser with docker

dry-run

docker run --rm --privileged \
  -v $PWD:/go/src/github.com/sj14/multicode \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -w /go/src/github.com/sj14/multicode \
  -e GITHUB_TOKEN=YOURTOKEN \
  -e GO111MODULE=on \
  goreleaser/goreleaser --rm-dist --snapshot --skip-publish

run

docker run --rm --privileged \
-v $PWD:/go/src/github.com/sj14/multicode \
-v /var/run/docker.sock:/var/run/docker.sock \
-w /go/src/github.com/sj14/multicode \
-e GITHUB_TOKEN=YOURTOKEN \
-e GO111MODULE=on \
goreleaser/goreleaser --rm-dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment