Skip to content

Commit d80dfc4

Browse files
committed
fix: do not build for window arch
Signed-off-by: Olivier Vernin <olivier@vernin.me>
1 parent 6ee90ec commit d80dfc4

1 file changed

Lines changed: 34 additions & 31 deletions

File tree

.goreleaser.yml

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,21 @@ builds:
4040
- amd64
4141
- arm64
4242
- arm
43+
ignore:
44+
- goos: windows
45+
goarch: arm
4346

4447
changelog:
4548
## Delegate Changelog to release-drafter
4649
disable: true
4750

4851
checksum:
49-
name_template: 'checksums.txt'
52+
name_template: "checksums.txt"
5053

5154
dockers:
5255
- image_templates:
53-
- 'updatecli/releasepost:{{ .Tag }}-amd64'
54-
- 'ghcr.io/updatecli/releasepost:{{ .Tag }}-amd64'
56+
- "updatecli/releasepost:{{ .Tag }}-amd64"
57+
- "ghcr.io/updatecli/releasepost:{{ .Tag }}-amd64"
5558
dockerfile: Dockerfile
5659
use: buildx
5760
build_flag_templates:
@@ -68,8 +71,8 @@ dockers:
6871
extra_files:
6972
- Makefile
7073
- image_templates:
71-
- 'updatecli/releasepost:{{ .Tag }}-arm64'
72-
- 'ghcr.io/updatecli/releasepost:{{ .Tag }}-arm64'
74+
- "updatecli/releasepost:{{ .Tag }}-arm64"
75+
- "ghcr.io/updatecli/releasepost:{{ .Tag }}-arm64"
7376
dockerfile: Dockerfile
7477
use: buildx
7578
build_flag_templates:
@@ -91,38 +94,38 @@ docker_signs:
9194
artifacts: manifests
9295
output: true
9396
args:
94-
- 'sign'
95-
- '--yes'
96-
- '${artifact}@${digest}'
97+
- "sign"
98+
- "--yes"
99+
- "${artifact}@${digest}"
97100

98101
docker_manifests:
99-
- name_template: 'updatecli/releasepost:{{ .Tag }}'
102+
- name_template: "updatecli/releasepost:{{ .Tag }}"
100103
image_templates:
101-
- 'updatecli/releasepost:{{ .Tag }}-amd64'
102-
- 'updatecli/releasepost:{{ .Tag }}-arm64'
103-
- name_template: 'ghcr.io/updatecli/releasepost:{{ .Tag }}'
104+
- "updatecli/releasepost:{{ .Tag }}-amd64"
105+
- "updatecli/releasepost:{{ .Tag }}-arm64"
106+
- name_template: "ghcr.io/updatecli/releasepost:{{ .Tag }}"
104107
image_templates:
105-
- 'ghcr.io/updatecli/releasepost:{{ .Tag }}-amd64'
106-
- 'ghcr.io/updatecli/releasepost:{{ .Tag }}-arm64'
107-
- name_template: 'updatecli/releasepost:latest'
108+
- "ghcr.io/updatecli/releasepost:{{ .Tag }}-amd64"
109+
- "ghcr.io/updatecli/releasepost:{{ .Tag }}-arm64"
110+
- name_template: "updatecli/releasepost:latest"
108111
image_templates:
109-
- 'updatecli/releasepost:{{ .Tag }}-amd64'
110-
- 'updatecli/releasepost:{{ .Tag }}-arm64'
111-
- name_template: 'ghcr.io/updatecli/releasepost:latest'
112+
- "updatecli/releasepost:{{ .Tag }}-amd64"
113+
- "updatecli/releasepost:{{ .Tag }}-arm64"
114+
- name_template: "ghcr.io/updatecli/releasepost:latest"
112115
image_templates:
113-
- 'ghcr.io/updatecli/releasepost:{{ .Tag }}-amd64'
114-
- 'ghcr.io/updatecli/releasepost:{{ .Tag }}-arm64'
116+
- "ghcr.io/updatecli/releasepost:{{ .Tag }}-amd64"
117+
- "ghcr.io/updatecli/releasepost:{{ .Tag }}-arm64"
115118

116119
env:
117120
- GO111MODULE=on
118121
- CGO_ENABLED=0
119122

120123
nfpms:
121-
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
122-
homepage: 'https://www.updatecli.io'
123-
description: 'Repost changelogs to your static site generator git repository'
124-
maintainer: 'Olivier Vernin <olivier@vernin.me>'
125-
license: 'Apache-2.0'
124+
- file_name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
125+
homepage: "https://www.updatecli.io"
126+
description: "Repost changelogs to your static site generator git repository"
127+
maintainer: "Olivier Vernin <olivier@vernin.me>"
128+
license: "Apache-2.0"
126129
vendor: Updatecli
127130
section: utils
128131
formats:
@@ -141,7 +144,7 @@ nfpms:
141144
file_info:
142145
mode: 0644
143146
- src: ./completions/releasepost.zsh
144-
dst: /usr/share/zsh/vendor-completions/_releastpost
147+
dst: /usr/share/zsh/vendor-completions/_releastpost
145148
file_info:
146149
mode: 0644
147150
- src: ./manpages/releasepost.1.gz
@@ -161,13 +164,13 @@ sboms:
161164

162165
signs:
163166
- cmd: cosign
164-
certificate: '${artifact}.pem'
167+
certificate: "${artifact}.pem"
165168
signature: "${artifact}.sig"
166169
output: true
167170
artifacts: checksum
168171
args:
169172
- sign-blob
170-
- '--yes'
171-
- '--output-certificate=${certificate}'
172-
- '--output-signature=${signature}'
173-
- '${artifact}'
173+
- "--yes"
174+
- "--output-certificate=${certificate}"
175+
- "--output-signature=${signature}"
176+
- "${artifact}"

0 commit comments

Comments
 (0)