-
Notifications
You must be signed in to change notification settings - Fork 4
/
.goreleaser.yml
63 lines (63 loc) · 1.9 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
before:
hooks:
- go mod download
builds:
- main: main.go
binary: gotf
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- darwin
- windows
ldflags:
- >-
-X github.com/craftypath/gotf/pkg/gotf.Version={{ .Tag }}
-X github.com/craftypath/gotf/pkg/gotf.GitCommit={{ .ShortCommit }}
-X github.com/craftypath/gotf/pkg/gotf.BuildDate={{ .Date }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
archives:
- format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
brews:
- tap:
owner: craftypath
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: craftypath-ci-bot
email: [email protected]
folder: Formula
homepage: https://github.com/craftypath/gotf/
description: Handling multiple environments with Terraform made easy
install: |
bin.install "gotf"
test: |
system "#{bin}/gotf --version"
dockers:
- goos: linux
goarch: amd64
dockerfile: Dockerfile
image_templates:
- ghcr.io/craftypath/gotf:{{ .Tag }}
- ghcr.io/craftypath/gotf:latest
build_flag_templates:
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .Commit }}
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.description=gotf - Handling multiple environments with Terraform made easy
- --label=org.opencontainers.image.vendor=craftypath
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.source=https://github.com/craftypath/gotf
- --label=org.opencontainers.image.authors=The gotf Authors