From db986e8932fa48c99eab08475414216efbc2194a Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Wed, 6 Sep 2023 15:28:51 +0200 Subject: [PATCH] Fix goreleaser deprecations --- .goreleaser.yaml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fed1a67..fe44ee1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -23,7 +23,7 @@ release: brews: - - tap: + repository: owner: humio name: homebrew-humio token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" @@ -36,11 +36,14 @@ brews: archives: - + name_template: >- + {{- .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} format: tar.gz - replacements: - amd64: 64-bit - darwin: macOS - linux: Linux format_overrides: - goos: windows format: zip @@ -50,16 +53,16 @@ archives: # # The name of the snap. This is optional. # # Default is project name. # name: humioctl -# +# # # Wether to publish the snap to the snapcraft store. # # Remember you need to `snapcraft login` first. # # Defaults to false. # publish: true -# +# # # Single-line elevator pitch for your amazing snap. # # 79 char long at most. # summary: CLI for managing and streaming data to Humio. -# +# # # This the description of your snap. You have a paragraph or two to tell the # # most important story about your snap. Keep it under 100 words though, # # we live in tweetspace and your description wants to look good in the snap @@ -68,7 +71,7 @@ archives: # The Humio CLI is an easy way to manage your Humio cluster. You can also # use it to tail files and stream them to Humio, but this is no replacement # for a full-featured data shipper like filebeat. -# +# # # A guardrail to prevent you from releasing a snap to all your users before # # it is ready. # # `devel` will let you release only to the `edge` and `beta` channels in the @@ -76,7 +79,7 @@ archives: # # channels. More info about channels here: # # https://snapcraft.io/docs/reference/channels # grade: stable -# +# # # Snaps can be setup to follow three different confinement policies: # # `strict`, `devmode` and `classic`. A strict confinement where the snap # # can only read and write in its own namespace is recommended. Extra @@ -84,14 +87,14 @@ archives: # # are explained later. More info about confinement here: # # https://snapcraft.io/docs/reference/confinement # confinement: strict -# +# # # Each binary built by GoReleaser is an app inside the snap. In this section # # you can declare extra details for those binaries. It is optional. # apps: -# +# # # The name of the app must be the same name as the binary built or the snapcraft name. # humioctl: -# +# # # If your app requires extra permissions to work outside of its default # # confined space, declare them here. # # You can read the documentation about the available plugs and the