goreleaser config

main v0.2.1
sundowndev 2021-05-19 17:18:07 +02:00
parent c50cf8aeb7
commit c7d58e5a82
2 changed files with 9 additions and 9 deletions

View File

@ -15,6 +15,7 @@ builds:
dir: .
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
- windows
@ -23,19 +24,16 @@ builds:
- amd64
- arm
- arm64
- 386
ldflags: -s -w -X github.com/cloudskiff/driftctl/build.env=release -X github.com/sundowndev/goreleaser-template.version={{.Version}}
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: binary
files:
- none*
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
name_template: '{{ .ProjectName }}_SHA256SUMS.txt'
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-next"
changelog:

View File

@ -4,6 +4,8 @@ import (
"fmt"
)
const version = "dev"
func main() {
fmt.Println("Hello, world!", "v0.1.2 release", "v0.2.0 release")
fmt.Println("Hello, world!", version)
}