1
1
project_name : external-dns-stackit-webhook
2
- release :
3
- github :
4
- owner : stackitcloud
5
- name : external-dns-stackit-webhook
6
- name_template : ' {{.Tag}} '
2
+ snapshot :
3
+ name_template : ' {{ .Tag }}-SNAPSHOT '
4
+ before :
5
+ hooks :
6
+ - go mod tidy
7
7
builds :
8
8
- id : external-dns-stackit-webhook
9
9
goos :
10
10
- linux
11
+ - windows
11
12
- darwin
12
13
goarch :
13
14
- amd64
14
15
- arm64
15
- goarm :
16
- - " 6"
17
- gomips :
18
- - hardfloat
19
- goamd64 :
20
- - v1
21
- targets :
22
- - linux_amd64_v1
23
- - linux_arm64
24
- - darwin_amd64_v1
25
- - darwin_arm64
26
- dir : .
27
16
main : ./cmd/webhook
28
17
binary : external-dns-stackit-webhook
29
- builder : go
30
- gobinary : go
31
- command : build
32
18
env :
33
19
- CGO_ENABLED=0
34
20
ldflags :
35
- - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
21
+ - -s
22
+ - -w
23
+ - -X 'main.Version={{.Version}}'
24
+ - -X 'main.Gitsha={{.ShortCommit}}'
25
+ source :
26
+ enabled : true
36
27
archives :
37
- - id : default
38
- name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
39
- format : tar.gz
40
- files :
41
- - src : license*
42
- - src : LICENSE*
43
- - src : readme*
44
- - src : README*
45
- - src : changelog*
46
- - src : CHANGELOG*
28
+ - format : tar.gz
29
+ # this name template makes the OS and Arch compatible with the results of uname.
30
+ name_template : >-
31
+ {{ .ProjectName }}_
32
+ {{- title .Os }}_
33
+ {{- if eq .Arch "amd64" }}x86_64
34
+ {{- else if eq .Arch "386" }}i386
35
+ {{- else }}{{ .Arch }}{{ end }}
36
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
37
+ # use zip for windows archives
38
+ format_overrides :
39
+ - goos : windows
40
+ format : zip
47
41
dockers :
48
42
- id : external-dns-stackit-webhook
49
- use : docker
43
+ use : buildx
50
44
image_templates :
51
45
- " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}"
52
46
- " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest"
@@ -63,64 +57,40 @@ dockers:
63
57
- --label=org.opencontainers.image.revision={{ .FullCommit }}
64
58
- --label=org.opencontainers.image.licenses=Apache-2.0
65
59
skip_push : false
66
- snapshot :
67
- name_template : ' {{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
68
60
checksum :
69
- name_template : ' {{ .ProjectName }}_{{ .Version }}_checksums.txt '
70
- algorithm : sha256
61
+ disable : false
62
+ name_template : " {{ .ProjectName }}_{{ .Version }}_checksums.txt "
71
63
dist : dist
72
- env_files :
73
- github_token : ~/.config/goreleaser/github_token
74
- gitlab_token : ~/.config/goreleaser/gitlab_token
75
- gitea_token : ~/.config/goreleaser/gitea_token
76
- source :
77
- name_template : ' {{ .ProjectName }}-{{ .Version }}'
78
- format : tar.gz
79
- gomod :
80
- gobinary : go
81
- announce :
82
- twitter :
83
- message_template : ' {{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
84
- mastodon :
85
- message_template : ' {{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
86
- server : " "
87
- reddit :
88
- title_template : ' {{ .ProjectName }} {{ .Tag }} is out!'
89
- url_template : ' {{ .ReleaseURL }}'
90
- slack :
91
- message_template : ' {{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
92
- username : GoReleaser
93
- discord :
94
- message_template : ' {{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
95
- author : GoReleaser
96
- color : " 3888754"
97
- icon_url : https://goreleaser.com/static/avatar.png
98
- teams :
99
- title_template : ' {{ .ProjectName }} {{ .Tag }} is out!'
100
- message_template : ' {{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
101
- color : ' #2D313E'
102
- icon_url : https://goreleaser.com/static/avatar.png
103
- smtp :
104
- subject_template : ' {{ .ProjectName }} {{ .Tag }} is out!'
105
- body_template : ' You can view details from: {{ .ReleaseURL }}'
106
- mattermost :
107
- message_template : ' {{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
108
- title_template : ' {{ .ProjectName }} {{ .Tag }} is out!'
109
- username : GoReleaser
110
- linkedin :
111
- message_template : ' {{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
112
- telegram :
113
- message_template : ' {{ .ProjectName }} {{ mdv2escape .Tag }} is out! Check it out at {{ mdv2escape .ReleaseURL }}'
114
- parse_mode : MarkdownV2
115
- webhook :
116
- message_template : ' { "message": "{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"}'
117
- content_type : application/json; charset=utf-8
118
- opencollective :
119
- title_template : ' {{ .Tag }}'
120
- message_template : ' {{ .ProjectName }} {{ .Tag }} is out!<br/>Check it out at <a href="{{ .ReleaseURL }}">{{ .ReleaseURL }}</a>'
121
- git :
122
- tag_sort : -version:refname
123
- github_urls :
124
- download : https://github.com
125
- gitlab_urls :
126
- download : https://gitlab.com
64
+ docker_signs :
65
+ - cmd : cosign
66
+ args :
67
+ - sign
68
+ - --tlog-upload=false
69
+ - --key
70
+ - env://COSIGN_PRIVATE_KEY
71
+ - " ${artifact}@${digest}"
72
+ - --yes
73
+ artifacts : images
74
+ ids :
75
+ - external-dns-ionos-webhook
76
+ output : true
77
+ signs :
78
+ - cmd : cosign
79
+ env :
80
+ - COSIGN_EXPERIMENTAL=1
81
+ certificate : ' ${artifact}.pem'
82
+ args :
83
+ - sign-blob
84
+ - --yes
85
+ - ' --output-certificate=${certificate}'
86
+ - ' --output-signature=${signature}'
87
+ - ' ${artifact}'
88
+ artifacts : checksum
89
+ output : true
90
+ changelog :
91
+ use : github
92
+ sort : asc
93
+ filters :
94
+ exclude :
95
+ - ' ^docs:'
96
+ - ' ^test:'
0 commit comments