-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
45 lines (45 loc) · 1.42 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
builds:
- main: .
env:
- CGO_ENABLED=0
ldflags:
- -s
- -w
- -X github.com/kutifyhq/autifyctl/pkg/version.Version={{.Tag}}
- -X github.com/kutifyhq/autifyctl/pkg/version.Revision={{.ShortCommit}}
- -X github.com/kutifyhq/autifyctl/pkg/version.BuildDate={{.Date}}
goos:
- linux
- darwin
- windows
brews:
- tap:
owner: kutifyhq
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/kutifyhq/autifyctl/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: goreleaser@carlosbecker.com
folder: Formula
description: "CLI tool for Autify API"
homepage: "https://github.com/kutifyhq/autifyctl"
test: |
system "#{bin}/autifyctl --version"
dockers:
- image_templates:
- "ghcr.io/kutifyhq/autifyctl:{{ .Tag }}"
- "ghcr.io/kutifyhq/autifyctl:v{{ .Major }}"
- "ghcr.io/kutifyhq/autifyctl:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/kutifyhq/autifyctl:latest"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
dockerfile: Dockerfile.compile
goos: linux
goarch: amd64
ids:
- autifyctl