-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
75 lines (75 loc) · 2.04 KB
/
.goreleaser.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
project_name: drprune
env:
- GO111MODULE=on
before:
hooks:
- make clean
- go mod tidy
- go generate ./...
builds:
- id: drprune
binary: drprune
env:
- CGO_ENABLED=0
main: ./cmd/drprune/main.go
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- ppc64le
mod_timestamp: "{{.CommitTimestamp}}"
flags:
- -trimpath
ldflags:
- -s -w
- -X "github.com/ci-monk/drprune/internal/version.builtDate={{.CommitDate}}"
- -X "github.com/ci-monk/drprune/internal/version.builtBy=goreleaser"
- -X "github.com/ci-monk/drprune/internal/version.cliVersion={{.Env.CLIENT_VERSION}}"
- -X "github.com/ci-monk/drprune/internal/version.commit={{.Commit}}"
- -X "github.com/ci-monk/drprune/internal/version.commitShort={{.ShortCommit}}"
- -X "github.com/ci-monk/drprune/internal/version.commitBranch={{.Env.GIT_BRANCH}}"
- -X "github.com/ci-monk/drprune/internal/version.goVersion={{.Env.GO_VERSION}}"
archives:
- name_template: "{{.ProjectName}}_v{{.Version}}_{{.Os}}-{{.Arch}}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
snapshot:
name_template: "SNAPSHOT-{{ .Commit }}"
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS"
algorithm: sha256
changelog:
skip: true
brews:
- name: drprune
tap:
owner: ci-monk
branch: main
name: homebrew-tools
folder: formula
commit_author:
name: ci-monk
email: ci-monk@protonmail.com
commit_msg_template: "feat: brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/ci-monk/drprune"
description: "Prune old images on GitHub (ghcr.io) and GitLab (registry.gitlab.com) container registry"
license: "MIT"
install: |
bin.install "drprune"
release:
github:
owner: ci-monk
name: drprune
name_template: "v{{.Version}}"