Skip to content

Commit

Permalink
update release make target to use go 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
nickysemenza committed Aug 26, 2022
1 parent cacf170 commit bba3a20
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ bin
*.deb
*.rpm
test

.DS_Store
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ builds:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
archives:
- format: binary
allow_different_binary_count: true # https://github.com/goreleaser/goreleaser/pull/1841
release:
github:
owner: cloudflare
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ snapshot:
.PHONY: github-release
github-release:
@:$(call check_defined, GITHUB_TOKEN)
docker run -e GITHUB_TOKEN=$(GITHUB_TOKEN) --rm -v $(PWD):/workdir -w /workdir cbroglie/goreleaser-cgo:1.12.12-musl goreleaser --rm-dist

docker run --rm --privileged \
-e GITHUB_TOKEN=$(GITHUB_TOKEN) \
-v $(PWD):/cross \
-v /var/run/docker.sock:/var/run/docker.sock \
-w /cross \
ghcr.io/gythialy/golang-cross:v1.18 --rm-dist

.PHONY: docker-build
docker-build:
Expand Down

0 comments on commit bba3a20

Please sign in to comment.