Skip to content

Commit

Permalink
fix goreleaser config for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Aug 21, 2024
1 parent 1929a0b commit 831a308
Showing 1 changed file with 60 additions and 59 deletions.
119 changes: 60 additions & 59 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,65 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
version: 2
before:
hooks:
- go mod download
- go mod download
builds:
- id: docker-machine-driver-metal
env:
- CGO_ENABLED=0
- GO111MODULE=on
binary: docker-machine-driver-metal
ldflags:
- -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.version={{.Version}}
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm64
- goos: darwin
goarch: arm
- id: docker-machine-driver-packet
env:
- CGO_ENABLED=0
- GO111MODULE=on
binary: docker-machine-driver-packet
ldflags:
- -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.version={{.Version}}
- -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.driverName=packet
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm64
- goos: darwin
goarch: arm
- id: docker-machine-driver-metal
env:
- CGO_ENABLED=0
- GO111MODULE=on
binary: docker-machine-driver-metal
ldflags:
- -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.version={{.Version}}
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm64
- goos: darwin
goarch: arm
- id: docker-machine-driver-packet
env:
- CGO_ENABLED=0
- GO111MODULE=on
binary: docker-machine-driver-packet
ldflags:
- -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.version={{.Version}}
- -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.driverName=packet
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm64
- goos: darwin
goarch: arm
archives:
- name_template: "{{ .Binary }}_{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: zip
Expand All @@ -73,10 +74,10 @@ checksum:
release:
name_template: "{{.ProjectName}}-v{{.Version}}"
snapshot:
name_template: "{{ .Tag }}-next"
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

0 comments on commit 831a308

Please sign in to comment.