This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.goreleaser.yml
158 lines (146 loc) · 4.73 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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
---
before:
hooks:
- go mod tidy
- ./scripts/completions.sh
builds:
- id: yot
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
main: ./cmd/yot
binary: yot
ldflags:
- -s -w -X github.com/vmware-tanzu-labs/yaml-overlay-tool/internal/commands.version={{.Version}} -extldflags '-static'
signs:
- artifacts: checksum
args:
- "--batch"
- "-u"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
name_template: "yot_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
- completions/*
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}-snapshot-{{.ShortCommit}}"
changelog:
sort: asc
filters:
exclude:
- '^docs(\(.*\))?:'
- '^test(\(.*\))?:'
- '^ci(\(.*\))?:'
- '^chore(\(.*\))?:'
- '^build(\(.*\))?:'
project_name: yot
dockers:
- image_templates:
- 'ghcr.io/vmware-tanzu-labs/yot:v{{ .Version }}'
- 'ghcr.io/vmware-tanzu-labs/yot:latest'
dockerfile: Dockerfile
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=org.opencontainers.image.licenses=MIT"
- "--label=VERSION={{.Version}}"
- "--platform=linux/amd64"
brews:
- name: yot
tap:
owner: vmware-tanzu-labs
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: [email protected]
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
# Your app's homepage.
# Default is empty.
homepage: "https://github.com/vmware-tanzu-labs/yaml-overlay-tool"
# Template of your app's description.
# Default is empty.
description: "A YAML Overlay Tool with templating tendencies."
# SPDX identifier of your app's license.
# Default is empty.
license: "MIT"
# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: auto
# Packages your package depends on.
dependencies:
- name: kubectl
type: optional
install: |-
bin.install "yot"
bash_completion.install "completions/yot.bash" => "yot"
zsh_completion.install "completions/yot.zsh" => "_yot"
fish_completion.install "completions/yot.fish"
# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/yot --version"
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://github.com/vmware-tanzu-labs/yaml-overlay-tool.com
description: "A YAML Overlay Tool with templating tendencies."
maintainer: Jeff Davis <[email protected]>, Andrew Huffman <[email protected]>
license: MIT
vendor: VMware Tanzu Labs
contents:
- src: ./completions/yot.bash
dst: /etc/bash_completion.d/yot
- src: ./completions/yot.fish
dst: /usr/share/fish/completions/yot.fish
- src: ./completions/yot.zsh
dst: /usr/local/share/zsh/site-functions/_yot
formats:
- apk
- deb
- rpm
recommends:
- kubectl
# snapcrafts:
# - name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
# name: yaml-overlay-tool
# summary: "A YAML Overlay Tool with templating tendencies."
# description: |
# YAML Overlay Tool, or Yot for short, often pronounced /yaucht/, is a tool
# to assist with patching YAML files. Yot uses JSONPath to query YAML documents
# within YAML files, and to perform a change. YAML Overlay Tool operates on YAML
# nodes. It is able to preserve and inject head, foot, and line comments into the
# new output versions of the files that you manipulate.
# grade: stable
# confinement: strict
# publish: true