Skip to content

Commit

Permalink
Update .goreleaser.yml for goreleaser v2
Browse files Browse the repository at this point in the history
  • Loading branch information
davewalter committed Jul 23, 2024
1 parent 6b3646b commit 06e012c
Showing 1 changed file with 42 additions and 34 deletions.
76 changes: 42 additions & 34 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# For documentation at http://goreleaser.com
version: 2

before:
hooks:
- go mod download
- go mod download

release:
github:
owner: pivotal-cf
name: winfs-injector

builds:
- env:
- CGO_ENABLED=0
Expand All @@ -18,45 +22,49 @@ builds:
ldflags:
- -X "main.version={{.Version}}"
main: ./

archives:
- id: github
format: binary
name_template: "winfs-injector-{{ .Os }}"
- id: homebrew
format: "tar.gz"
name_template: "winfs-injector-{{ .Os }}"
format_overrides:
- goos: windows
format: zip
brews:
- name: winfs-injector
tap:
owner: pivotal-cf
name: winfs-injector
token: "{{ .Env.GITHUB_TOKEN }}"
folder: HomebrewFormula
ids:
- homebrew
test: |
system "#{bin}/winfs-injector --version"
dockers:
- image_templates:
- "pivotalcfreleng/winfs-injector:latest"
- "pivotalcfreleng/winfs-injector:{{ .Tag }}"
- "gcr.io/tas-ppe/pivotalcfreleng/winfs-injector:latest"
- "gcr.io/tas-ppe/pivotalcfreleng/winfs-injector:{{ .Tag }}"
- id: github
format: binary
name_template: "winfs-injector-{{ .Os }}"

skip_push: "false"
- id: homebrew
format: "tar.gz"
name_template: "winfs-injector-{{ .Os }}"
format_overrides:
- goos: windows
format: zip

build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
brews:
- name: winfs-injector
repository:
owner: pivotal-cf
name: winfs-injector
token: "{{ .Env.GITHUB_TOKEN }}"
directory: HomebrewFormula
ids:
- homebrew
test: |
system "#{bin}/winfs-injector --version"
dockers:
- image_templates:
- "pivotalcfreleng/winfs-injector:latest"
- "pivotalcfreleng/winfs-injector:{{ .Tag }}"
- "gcr.io/tas-ppe/pivotalcfreleng/winfs-injector:latest"
- "gcr.io/tas-ppe/pivotalcfreleng/winfs-injector:{{ .Tag }}"
skip_push: "false"
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"

checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
skip: true
disable: true

0 comments on commit 06e012c

Please sign in to comment.