Skip to content

Commit

Permalink
fix(ci): Update goreleaser config
Browse files Browse the repository at this point in the history
Packer v1.8.0 removed the packer-plugins-check command.
  • Loading branch information
breed808 committed Mar 12, 2023
1 parent e417654 commit 22a59a5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is an example goreleaser.yaml file with some defaults.
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
env:
- CGO_ENABLED=0
Expand All @@ -9,19 +9,14 @@ before:
- go test ./...
# As part of the release doc files are included as a separate deliverable for
# consumption by Packer.io. To include a separate docs.zip uncomment the following command.
- make ci-release-docs
#- make ci-release-docs
# Check plugin compatibility with required version of the Packer SDK
- make plugin-check
builds:
# A separated build to run the packer-plugins-check only once for a linux_amd64 binary
-
id: plugin-check
mod_timestamp: '{{ .CommitTimestamp }}'
hooks:
post:
# This will check plugin compatibility against latest version of Packer
- cmd: |
go install github.com/hashicorp/packer/cmd/packer-plugins-check@latest &&
packer-plugins-check -load={{ .Name }}
dir: "{{ dir .Path}}"
flags:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
Expand All @@ -38,6 +33,9 @@ builds:
ldflags:
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
goos:
- netbsd
- solaris
- openbsd
- freebsd
- windows
- linux
Expand All @@ -48,6 +46,8 @@ builds:
- arm
- arm64
ignore:
- goos: openbsd
goarch: arm64
- goos: darwin
goarch: '386'
- goos: linux
Expand Down Expand Up @@ -78,8 +78,8 @@ release:
# draft: true
# As part of the release doc files are included as a separate deliverable for consumption by Packer.io.
# To include a separate docs.zip uncomment the extra_files config and the docs.zip command hook above.
extra_files:
- glob: ./docs.zip
#extra_files:
#- glob: ./docs.zip

changelog:
skip: true

0 comments on commit 22a59a5

Please sign in to comment.