11project_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 
77builds :
88  - id : external-dns-stackit-webhook 
99    goos :
1010      - linux 
11+       - windows 
1112      - darwin 
1213    goarch :
1314      - amd64 
1415      - 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 : . 
2716    main : ./cmd/webhook 
2817    binary : external-dns-stackit-webhook 
29-     builder : go 
30-     gobinary : go 
31-     command : build 
3218    env :
3319      - CGO_ENABLED=0 
3420    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 
3627archives :
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 
4741dockers :
4842  - id : external-dns-stackit-webhook 
49-     use : docker 
43+     use : buildx 
5044    image_templates :
5145      - " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}" 
5246      - " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest" 
@@ -63,64 +57,40 @@ dockers:
6357      - --label=org.opencontainers.image.revision={{ .FullCommit }} 
6458      - --label=org.opencontainers.image.licenses=Apache-2.0 
6559    skip_push : false 
66- snapshot :
67-   name_template : ' {{ .Version }}-SNAPSHOT-{{ .ShortCommit }}' 
6860checksum :
69-   name_template :  ' {{ .ProjectName }}_{{ .Version }}_checksums.txt ' 
70-   algorithm :  sha256 
61+   disable :  false 
62+   name_template :  " {{ .ProjectName }}_{{ .Version }}_checksums.txt " 
7163dist : 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