From bbfa5dbbfc19e547f105596cee666e81ac0af557 Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Sat, 26 Oct 2019 20:43:03 +0300 Subject: [PATCH] update goreleaser config, replace deprecated options --- .goreleaser.yml | 79 +++++++++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 38 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 9f2e1026f7..f48037870d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,17 +5,18 @@ release: name: centrifugo name_template: '{{.Tag}}' prerelease: false -brew: - github: - owner: centrifugal - name: homebrew-centrifugo - folder: Formula - description: "Real-time messaging server" - commit_author: - name: Alexander Emelin - email: frvzmb@gmail.com - install: bin.install "centrifugo" - homepage: "https://github.com/centrifugal/centrifugo" +brews: + - + github: + owner: centrifugal + name: homebrew-centrifugo + folder: Formula + description: "Real-time messaging server" + commit_author: + name: Alexander Emelin + email: frvzmb@gmail.com + install: bin.install "centrifugo" + homepage: "https://github.com/centrifugal/centrifugo" builds: - goos: - linux @@ -38,38 +39,40 @@ builds: env: # https://github.com/goreleaser/goreleaser/issues/225 - CGO_ENABLED=0 -archive: - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm - }}v{{ .Arm }}{{ end }}' - format: tar.gz - files: - - LICENSE* - - README* - - CHANGELOG* - format_overrides: - - goos: windows - format: zip +archives: + - id: centrifugo + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm + }}v{{ .Arm }}{{ end }}' + format: tar.gz + files: + - LICENSE* + - README* + - CHANGELOG* + format_overrides: + - goos: windows + format: zip checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' dist: dist -sign: - cmd: gpg - args: - - --output - - $signature - - --detach-sig - - $artifact - signature: ${artifact}.sig - artifacts: none +signs: + - + cmd: gpg + args: + - --output + - $signature + - --detach-sig + - $artifact + signature: ${artifact}.sig + artifacts: none dockers: - - binary: centrifugo + binaries: + - centrifugo goos: linux goarch: amd64 goarm: '' - image: centrifugo/centrifugo - tag_templates: - - "{{ .Tag }}" - - "v{{ .Major }}" - - "v{{ .Major }}.{{ .Minor }}" - - latest + image_templates: + - "centrifugo/centrifugo:{{ .Tag }}" + - "centrifugo/centrifugo:v{{ .Major }}" + - "centrifugo/centrifugo:v{{ .Major }}.{{ .Minor }}" + - "centrifugo/centrifugo:latest"