-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yaml
117 lines (106 loc) · 3.28 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
# The lines below are called `modelines`. See `:help modeline`
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.3.2/www/docs/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
project_name: argocd-ephemeral-access
version: 2
before:
hooks:
- go mod tidy
- go mod download
- make build-ui
- make manifests-release IMAGE_TAG={{ .Tag }}
- rm -rf dist
builds:
- id: ephemeral-access
main: ./cmd
binary: ephemeral-access
env:
- CGO_ENABLED=0
flags:
- -v
goos:
- linux
- windows
- darwin
ldflags:
- -X github.com/argoproj-labs/argocd-ephemeral-access/common.version={{ .Version }}
- -X github.com/argoproj-labs/argocd-ephemeral-access/common.buildDate={{ .Date }}
- -extldflags="-static"
dockers:
- image_templates:
- quay.io/argoprojlabs/argocd-ephemeral-access:latest
- quay.io/argoprojlabs/argocd-ephemeral-access:{{ .Tag }}
dockerfile: release.Dockerfile
skip_push: "{{ .IsSnapshot }}"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/amd64"
archives:
- id: binary
format: tar.gz
builds:
- "ephemeral-access"
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- id: ui-extension
format: gz
name_template: extension.tar
meta: true
files:
- src: ui/extension.tar
strip_parent: true
checksum:
name_template: 'extension_checksums.txt'
algorithm: sha256
release:
prerelease: auto
draft: false
extra_files:
- glob: ./install.yaml
header: |
## argocd-ephemeral-access
{{ .Date }}
### Docker images
- quay.io/argoprojlabs/argocd-ephemeral-access:{{ .Tag }}
- quay.io/argoprojlabs/argocd-ephemeral-access:latest
footer: |
**Full Changelog**: https://github.com/argoproj-labs/argocd-ephemeral-access/compare/{{ .PreviousTag }}...{{ .Tag }}
<a href="https://argoproj.github.io/cd/"><img src="https://raw.githubusercontent.com/argoproj/argo-site/c42c87e68cea647eadc1564e9e264621442aa8cf/src/images/icon.png" width="25%" ></a>
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: 'Other work'
order: 999
filters:
exclude:
- '^test:'
- '^.*?Bump(\([[:word:]]+\))?.+$'