-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
106 lines (105 loc) · 3.29 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: uncors
before:
hooks:
- go mod tidy
builds:
- goos:
- linux
- windows
- darwin
goarch:
- '386'
- amd64
- arm
- arm64
goarm:
- '6'
ignore:
- goos: darwin
goarch: '386'
main: '.'
ldflags:
- -s -w -X main.Version={{ .Version }}
tags: [ release ]
checksum:
name_template: 'checksums.txt'
source:
enabled: false
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- use: buildx
goos: linux
goarch: amd64
image_templates:
- "evg4b/{{ .ProjectName }}:{{ .Version }}"
- "evg4b/{{ .ProjectName }}:latest"
- "ghcr.io/evg4b/{{ .ProjectName }}:{{ .Version }}"
- "ghcr.io/evg4b/{{ .ProjectName }}:latest"
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.source='https://github.com/evg4b/uncors'"
- "--label=org.opencontainers.image.description='A simple dev HTTP/HTTPS proxy for replacing CORS headers.'"
- use: buildx
goos: linux
goarch: arm64
image_templates:
- "evg4b/{{ .ProjectName }}:{{ .Version }}"
- "evg4b/{{ .ProjectName }}:latest"
- "ghcr.io/evg4b/{{ .ProjectName }}:{{ .Version }}"
- "ghcr.io/evg4b/{{ .ProjectName }}:latest"
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.source='https://github.com/evg4b/uncors'"
- "--label=org.opencontainers.image.description='A simple dev HTTP/HTTPS proxy for replacing CORS headers.'"
docker_manifests:
- name_template: evg4b/{{ .ProjectName }}:{{ .Version }}
image_templates:
- evg4b/{{ .ProjectName }}:{{ .Version }}
- name_template: evg4b/{{ .ProjectName }}:latest
image_templates:
- evg4b/{{ .ProjectName }}:latest
brews:
- name: uncors
description: A simple dev HTTP/HTTPS reverse proxy for replacing CORS headers.
license: MIT
homepage: https://github.com/evg4b/uncors
folder: Formula
tap:
owner: evg4b
name: homebrew-tap
token: "{{ .Env.ACCOUNT_GITHUB_TOKEN }}"
test:
system "#{bin}/uncors", "--help"
commit_author:
name: Evgeny Abramovich
email: evg.abramovitch@gmail.com
scoop:
bucket:
owner: evg4b
name: scoop-bucket
branch: main
token: "{{ .Env.ACCOUNT_GITHUB_TOKEN }}"
folder: bucket
commit_author:
name: Evgeny Abramovich
email: evg.abramovitch@gmail.com
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: https://github.com/evg4b/uncors
description: A simple dev HTTP/HTTPS reverse proxy for replacing CORS headers.
license: MIT