-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
132 lines (121 loc) · 3.56 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- make clean
- go mod tidy
builds:
- main: ./cmd/graph/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- s390x
- ppc64le
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
# trims path
- -trimpath
ldflags:
# use commit date instead of current date as main.date
# only needed if you actually use those things in your main package, otherwise can be ignored.
- -w -X github.com/sergk/tkn-graph/pkg/cmd/version.cliVersion={{.Version}}
archives:
- name_template: >-
{{- .Binary }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
changelog:
use: github
sort: asc
abbrev: 0
groups: # Regex use RE2 syntax as defined here: https://github.com/google/re2/wiki/Syntax.
- title: "Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: "Documentation"
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 300
- title: "Dependency updates"
regexp: '^.*?(feat|fix|chore)\(deps?.+\)!?:.+$'
order: 400
- title: "Routine"
regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$'
order: 500
- title: "Other work"
order: 999
filters:
exclude:
- "^docs:"
- "^test:"
- Merge pull request
- Merge branch
release:
name_template: "v{{ .Version }}"
github:
owner: Sergk
name: tkn-graph
brews:
- name: tkn-graph
repository:
owner: sergk
name: homebrew-tap
folder: Formula
dependencies:
- name: tektoncd-cli
type: optional
- name: git
homepage: "https://github.com/sergk/tkn-graph"
license: Apache-2.0
description: Tekton CLI - The command line interface for Pipeline, PipelineRun presentation in Graph
test: |
system "#{bin}/tkn-graph", "--help"
install: |
bin.install_symlink "tkn" => "kubectl-tkn-graph"
bin.install "tkn-graph" => "tkn-graph"
output = Utils.popen_read("SHELL=bash #{bin}/tkn-graph completion bash")
(bash_completion/"tkn-graph").write output
output = Utils.popen_read("SHELL=zsh #{bin}/tkn-graph completion zsh")
(zsh_completion/"_tkn-graph").write output
prefix.install_metafiles
# signs the checksum file
# all files (including the sboms) are included in the checksum, so we don't need to sign each one if we don't want to
# https://goreleaser.com/customization/sign
signs:
- cmd: gpg
artifacts: checksum
output: true
# create a source tarball
# https://goreleaser.com/customization/source/
source:
enabled: true
# creates SBOMs of all archives and the source tarball using syft
# https://goreleaser.com/customization/sbom
sboms:
- artifacts: archive
- id: source # Two different sbom configurations need two different IDs
artifacts: source
announce:
skip: true
# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj