use goreleaser config spec v2

This commit is contained in:
Kenneth Bingham 2024-07-24 16:11:17 -04:00
parent ca9a2e7b7c
commit e1496baa18
No known key found for this signature in database
GPG Key ID: 31709281860130B6
6 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,4 @@
version: 2
builds: builds:
- id: zrok-amd64 - id: zrok-amd64
main: ./cmd/zrok main: ./cmd/zrok

View File

@ -1,3 +1,4 @@
version: 2
builds: builds:
- id: zrok-armv8 - id: zrok-armv8
main: ./cmd/zrok main: ./cmd/zrok

View File

@ -1,8 +1,11 @@
version: 2
builds: builds:
- id: zrok-armv7 - id: zrok-armv7
main: ./cmd/zrok main: ./cmd/zrok
binary: zrok binary: zrok
ldflags: "-s -w -X github.com/openziti/zrok/build.Version={{.Tag}} -X github.com/openziti/zrok/build.Hash={{.ShortCommit}}" ldflags:
- '-extldflags "-static"'
- "-s -w -X github.com/openziti/zrok/build.Version={{.Tag}} -X github.com/openziti/zrok/build.Hash={{.ShortCommit}}"
env: env:
- CC=arm-linux-gnueabi-gcc - CC=arm-linux-gnueabi-gcc
- CGO_ENABLED=1 - CGO_ENABLED=1

View File

@ -1,3 +1,4 @@
version: 2
builds: builds:
- id: zrok-amd64 - id: zrok-amd64
main: ./cmd/zrok main: ./cmd/zrok

View File

@ -1,3 +1,4 @@
version: 2
builds: builds:
- skip: true - skip: true
release: release:

View File

@ -1,3 +1,4 @@
version: 2
builds: builds:
- main: ./cmd/zrok - main: ./cmd/zrok
binary: zrok binary: zrok