improve goreleaser config

main v0.3.4
Raphaël 2021-07-09 11:10:37 +02:00 committed by GitHub
parent 598c6bc2a1
commit 396e84e72b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@ release:
github:
owner: sundowndev
name: goreleaser-template
draft: true
draft: false
prerelease: auto
before:
hooks:
@ -29,7 +29,7 @@ builds:
- arm
- arm64
- 386
ldflags: "-X github.com/sundowndev/goreleaser-template/version.Version={{ .Version }}"
ldflags: "-X github.com/sundowndev/goreleaser-template/version.Version={{ .Tag }}"
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
format: binary
@ -43,7 +43,7 @@ snapshot:
dockers:
- image_templates:
- "sundowndev/goreleaser-template:latest"
- "sundowndev/goreleaser-template:{{ .Version }}"
- "sundowndev/goreleaser-template:{{ .Tag }}"
dockerfile: Dockerfile
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
@ -60,6 +60,7 @@ nfpms:
description: sample project
homepage: https://github.com/sundowndev/goreleaser-template
license: MIT
file_name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
formats:
- deb
- rpm