Skip to content

Commit

Permalink
Merge pull request #1302 from cloudflare/nicky/release-with-vcs
Browse files Browse the repository at this point in the history
  • Loading branch information
nickysemenza authored Jun 12, 2023
2 parents 6ea8605 + b946db1 commit 68e04e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 50 deletions.
48 changes: 0 additions & 48 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ builds:
main: ./cmd/cfssl
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-linux
binary: cfssl
goos:
Expand All @@ -32,8 +30,6 @@ builds:
main: ./cmd/cfssl
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-windows
binary: cfssl
env:
Expand All @@ -46,8 +42,6 @@ builds:
main: ./cmd/cfssl
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-bundle-darwin
binary: cfssl-bundle
env:
Expand All @@ -61,8 +55,6 @@ builds:
main: ./cmd/cfssl-bundle
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-bundle-linux
binary: cfssl-bundle
goos:
Expand All @@ -75,8 +67,6 @@ builds:
main: ./cmd/cfssl-bundle
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-bundle-windows
binary: cfssl-bundle
env:
Expand All @@ -89,8 +79,6 @@ builds:
main: ./cmd/cfssl-bundle
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-certinfo-darwin
binary: cfssl-certinfo
env:
Expand All @@ -104,8 +92,6 @@ builds:
main: ./cmd/cfssl-certinfo
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-certinfo-linux
binary: cfssl-certinfo
goos:
Expand All @@ -118,8 +104,6 @@ builds:
main: ./cmd/cfssl-certinfo
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-certinfo-windows
binary: cfssl-certinfo
env:
Expand All @@ -132,8 +116,6 @@ builds:
main: ./cmd/cfssl-certinfo
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-newkey-darwin
binary: cfssl-newkey
env:
Expand All @@ -147,8 +129,6 @@ builds:
main: ./cmd/cfssl-newkey
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-newkey-linux
binary: cfssl-newkey
goos:
Expand All @@ -161,8 +141,6 @@ builds:
main: ./cmd/cfssl-newkey
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-newkey-windows
binary: cfssl-newkey
env:
Expand All @@ -175,8 +153,6 @@ builds:
main: ./cmd/cfssl-newkey
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-scan-darwin
binary: cfssl-scan
env:
Expand All @@ -190,8 +166,6 @@ builds:
main: ./cmd/cfssl-scan
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-scan-linux
binary: cfssl-scan
goos:
Expand All @@ -204,8 +178,6 @@ builds:
main: ./cmd/cfssl-scan
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssl-scan-windows
binary: cfssl-scan
env:
Expand All @@ -218,8 +190,6 @@ builds:
main: ./cmd/cfssl-scan
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssljson-darwin
binary: cfssljson
env:
Expand All @@ -233,8 +203,6 @@ builds:
main: ./cmd/cfssljson
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssljson-linux
binary: cfssljson
goos:
Expand All @@ -247,8 +215,6 @@ builds:
main: ./cmd/cfssljson
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: cfssljson-windows
binary: cfssljson
env:
Expand All @@ -261,8 +227,6 @@ builds:
main: ./cmd/cfssljson
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: mkbundle-darwin
binary: mkbundle
env:
Expand All @@ -276,8 +240,6 @@ builds:
main: ./cmd/mkbundle
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: mkbundle-linux
binary: mkbundle
goos:
Expand All @@ -290,8 +252,6 @@ builds:
main: ./cmd/mkbundle
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: mkbundle-windows
binary: mkbundle
env:
Expand All @@ -304,8 +264,6 @@ builds:
main: ./cmd/mkbundle
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: multirootca-darwin
binary: multirootca
env:
Expand All @@ -319,8 +277,6 @@ builds:
main: ./cmd/multirootca
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: multirootca-linux
binary: multirootca
goos:
Expand All @@ -333,8 +289,6 @@ builds:
main: ./cmd/multirootca
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
- id: multirootca-windows
binary: multirootca
env:
Expand All @@ -347,8 +301,6 @@ builds:
main: ./cmd/multirootca
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
flags:
- -buildvcs=false
archives:
- format: binary
allow_different_binary_count: true # https://github.com/goreleaser/goreleaser/pull/1841
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ snapshot:
--rm \
-v $(PWD):/cross \
-w /cross \
ghcr.io/gythialy/golang-cross:latest --clean --snapshot --skip-publish
ghcr.io/goreleaser/goreleaser-cross:latest --clean --snapshot --skip-publish

.PHONY: github-release
github-release:
Expand All @@ -71,7 +71,7 @@ github-release:
-e GITHUB_TOKEN=$(GITHUB_TOKEN) \
-v $(PWD):/cross \
-w /cross \
ghcr.io/gythialy/golang-cross:latest --clean
ghcr.io/goreleaser/goreleaser-cross:latest --clean

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

0 comments on commit 68e04e2

Please sign in to comment.