@@ -30,10 +30,12 @@ builds:
3030archives :
3131 - id : default
3232 name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
33- format : tar.gz
33+ formats :
34+ - tar.gz
3435 format_overrides :
3536 - goos : windows
36- format : zip
37+ formats :
38+ - zip
3739 files :
3840 - LICENSE
3941 - README.md
@@ -42,7 +44,7 @@ checksum:
4244 name_template : ' checksums.txt'
4345
4446snapshot :
45- name_template : ' {{ incpatch .Version }}-next'
47+ version_template : ' {{ incpatch .Version }}-next'
4648
4749changelog :
4850 sort : desc
@@ -86,42 +88,19 @@ release:
8688 go install github.com/l2D/azswitch/cmd/azswitch@{{ .Tag }}
8789 ```
8890
89- dockers :
90- - image_templates :
91- - ' ghcr.io/l2d/azswitch:{{ .Tag }}-amd64'
92- dockerfile : Dockerfile
93- use : buildx
94- build_flag_templates :
95- - ' --pull'
96- - ' --platform=linux/amd64'
97- - ' --label=org.opencontainers.image.created={{.Date}}'
98- - ' --label=org.opencontainers.image.title={{.ProjectName}}'
99- - ' --label=org.opencontainers.image.revision={{.FullCommit}}'
100- - ' --label=org.opencontainers.image.version={{.Version}}'
101- - ' --label=org.opencontainers.image.source={{.GitURL}}'
102- goarch : amd64
103-
104- - image_templates :
105- - ' ghcr.io/l2d/azswitch:{{ .Tag }}-arm64'
106- dockerfile : Dockerfile
107- use : buildx
108- build_flag_templates :
109- - ' --pull'
110- - ' --platform=linux/arm64'
111- - ' --label=org.opencontainers.image.created={{.Date}}'
112- - ' --label=org.opencontainers.image.title={{.ProjectName}}'
113- - ' --label=org.opencontainers.image.revision={{.FullCommit}}'
114- - ' --label=org.opencontainers.image.version={{.Version}}'
115- - ' --label=org.opencontainers.image.source={{.GitURL}}'
116- goarch : arm64
117-
118- docker_manifests :
119- - name_template : ' ghcr.io/l2d/azswitch:{{ .Tag }}'
120- image_templates :
121- - ' ghcr.io/l2d/azswitch:{{ .Tag }}-amd64'
122- - ' ghcr.io/l2d/azswitch:{{ .Tag }}-arm64'
123-
124- - name_template : ' ghcr.io/l2d/azswitch:latest'
125- image_templates :
126- - ' ghcr.io/l2d/azswitch:{{ .Tag }}-amd64'
127- - ' ghcr.io/l2d/azswitch:{{ .Tag }}-arm64'
91+ dockers_v2 :
92+ - images :
93+ - ' ghcr.io/l2d/azswitch'
94+ dockerfile : Dockerfile.goreleaser
95+ tags :
96+ - ' {{ .Tag }}'
97+ - ' {{ if not .IsNightly }}latest{{ end }}'
98+ platforms :
99+ - linux/amd64
100+ - linux/arm64
101+ labels :
102+ ' org.opencontainers.image.created ' : ' {{.Date}}'
103+ ' org.opencontainers.image.title ' : ' {{.ProjectName}}'
104+ ' org.opencontainers.image.revision ' : ' {{.FullCommit}}'
105+ ' org.opencontainers.image.version ' : ' {{.Version}}'
106+ ' org.opencontainers.image.source ' : ' {{.GitURL}}'
0 commit comments