-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy path.goreleaser.yml
141 lines (132 loc) · 3.54 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
---
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 }}
builds:
- pv-migrate
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- completions/*
checksum:
name_template: checksums.txt
algorithm: sha256
changelog:
sort: asc
filters:
exclude:
- '^build(\(.+\))?:'
- '^chore(\(.+\))?:'
- '^cd(\(.+\))?:'
- '^ci(\(.+\))?:'
- '^cicd(\(.+\))?:'
- '^docker(\(.+\))?:'
- '^docs(\(.+\))?:'
- '^refactor(\(.+\))?:'
- '^test(\(.+\))?:'
- Merge pull request
- Merge branch
- go mod tidy
dockers:
- image_templates:
- docker.io/utkuozdemir/pv-migrate:{{ .Tag }}-amd64
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- --platform=linux/amd64
- image_templates:
- docker.io/utkuozdemir/pv-migrate:{{ .Tag }}-arm64
use: buildx
goarch: arm64
dockerfile: Dockerfile
build_flag_templates:
- --platform=linux/arm64
- image_templates:
- docker.io/utkuozdemir/pv-migrate:{{ .Tag }}-armv7
use: buildx
goarch: arm
goarm: "7"
dockerfile: Dockerfile
build_flag_templates:
- --platform=linux/arm/v7
docker_manifests:
- name_template: docker.io/utkuozdemir/pv-migrate:{{ .Tag }}
image_templates:
- docker.io/utkuozdemir/pv-migrate:{{ .Tag }}-amd64
- docker.io/utkuozdemir/pv-migrate:{{ .Tag }}-arm64
- docker.io/utkuozdemir/pv-migrate:{{ .Tag }}-armv7
# To test docker image push, uncomment the following and run
# goreleaser release --skip-validate --rm-dist --debug
#release:
# disable: true
brews:
- repository:
owner: utkuozdemir
name: homebrew-pv-migrate
token: "{{ .Env.PRIVATE_ACCESS_TOKEN }}"
commit_author:
name: Utku Ozdemir
email: [email protected]
directory: Formula
goarm: "7"
homepage: https://github.com/utkuozdemir/pv-migrate
description: Persistent volume migration plugin for Kubernetes
license: Apache-2.0
test: |
system "#{bin}/pv-migrate -v"
install: |-
bin.install "pv-migrate"
bash_completion.install "completions/pv-migrate.bash" => "pv-migrate"
zsh_completion.install "completions/pv-migrate.zsh" => "_pv-migrate"
fish_completion.install "completions/pv-migrate.fish"
scoops:
- repository:
owner: utkuozdemir
name: scoop-pv-migrate
token: "{{ .Env.PRIVATE_ACCESS_TOKEN }}"
commit_author:
name: Utku Ozdemir
email: [email protected]
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