Skip to content

Commit bba3a20

Browse files
committed
update release make target to use go 1.18
1 parent cacf170 commit bba3a20

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ bin
55
*.deb
66
*.rpm
77
test
8-
8+
.DS_Store

.goreleaser.yml

+1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ builds:
295295
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
296296
archives:
297297
- format: binary
298+
allow_different_binary_count: true # https://github.com/goreleaser/goreleaser/pull/1841
298299
release:
299300
github:
300301
owner: cloudflare

Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ snapshot:
5757
.PHONY: github-release
5858
github-release:
5959
@:$(call check_defined, GITHUB_TOKEN)
60-
docker run -e GITHUB_TOKEN=$(GITHUB_TOKEN) --rm -v $(PWD):/workdir -w /workdir cbroglie/goreleaser-cgo:1.12.12-musl goreleaser --rm-dist
60+
61+
docker run --rm --privileged \
62+
-e GITHUB_TOKEN=$(GITHUB_TOKEN) \
63+
-v $(PWD):/cross \
64+
-v /var/run/docker.sock:/var/run/docker.sock \
65+
-w /cross \
66+
ghcr.io/gythialy/golang-cross:v1.18 --rm-dist
6167

6268
.PHONY: docker-build
6369
docker-build:

0 commit comments

Comments
 (0)