-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy path.goreleaser.yml
More file actions
151 lines (142 loc) · 3.85 KB
/
Copy path.goreleaser.yml
File metadata and controls
151 lines (142 loc) · 3.85 KB
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
---
version: 2
before:
hooks:
- go mod download
- ./scripts/completions.sh
builds:
- id: pv-migrate
main: ./cmd/pv-migrate
binary: pv-migrate
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
goarm:
- "7"
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm
archives:
- id: pv-migrate-archive
# default name template except we use .Tag instead of .Version to keep the "v" prefix
name_template: >-
{{ .ProjectName }}_
{{- .Tag }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
{{- with .Mips }}_{{ . }}{{ end }}
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
ids:
- pv-migrate
format_overrides:
- goos: windows
formats:
- zip
files:
- LICENSE
- completions/*
checksum:
name_template: checksums.txt
algorithm: sha256
git:
ignore_tags: # skip prereleases (alpha, beta, rc) on finding previous commit to generate the changelog
- "*-*"
changelog:
sort: asc
groups:
- title: "New Features"
regexp: '^feat(\(.+\))?:'
order: 0
- title: "Bug Fixes"
regexp: '^fix(\(.+\))?:'
order: 1
- title: "Performance Improvements"
regexp: '^perf(\(.+\))?:'
order: 2
- title: "Documentation"
regexp: '^docs(\(.+\))?:'
order: 3
- title: "Refactors & Internal Changes"
regexp: '^refactor(\(.+\))?:'
order: 4
- title: "Dependency Updates"
regexp: '^chore\(deps\):'
order: 5
- title: "Build, CI & Chores"
regexp: '^(build|ci|cd|cicd|docker|test|chore)(\(.+\))?:'
order: 6
- title: "Other Changes"
order: 999
filters:
exclude:
- Merge pull request
- Merge branch
- go mod tidy
dockers_v2:
- images:
- docker.io/utkuozdemir/pv-migrate
- ghcr.io/utkuozdemir/pv-migrate
tags:
- "{{ .Tag }}"
- "{{ if not .Prerelease }}latest{{ end }}"
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
release:
prerelease: auto
# homebrew_casks replaces the deprecated "brews" config (hard-deprecated in
# goreleaser v2.16, removed in v3). Casks now work on Linux too since
# Homebrew/brew#19121, and existing "brew install pv-migrate" users are
# auto-migrated to the cask via tap_migrations.json in the tap repo.
homebrew_casks:
- repository:
owner: utkuozdemir
name: homebrew-pv-migrate
token: "{{ .Env.PRIVATE_ACCESS_TOKEN }}"
skip_upload: auto
commit_author:
name: Utku Ozdemir
email: utkuozdemir@gmail.com
directory: Casks
homepage: https://github.com/utkuozdemir/pv-migrate
description: Persistent volume migration plugin for Kubernetes
completions:
bash: completions/pv-migrate.bash
zsh: completions/pv-migrate.zsh
fish: completions/pv-migrate.fish
# pv-migrate binaries are not code-signed/notarized, so strip the macOS
# quarantine bit on install to avoid the "damaged and can't be opened" error.
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/pv-migrate"]
end
scoops:
- repository:
owner: utkuozdemir
name: scoop-pv-migrate
token: "{{ .Env.PRIVATE_ACCESS_TOKEN }}"
skip_upload: auto
commit_author:
name: Utku Ozdemir
email: utkuozdemir@gmail.com
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: https://github.com/utkuozdemir/pv-migrate
description: Persistent volume migration plugin for Kubernetes
license: Apache-2.0