Skip to content

Commit e97ba29

Browse files
authored
Merge pull request #21 from stackitcloud/feature/arm64-build
feat: build external-dns-stackit-webhook for arm64
2 parents 231c8ad + eb092ff commit e97ba29

File tree

1 file changed

+35
-5
lines changed

1 file changed

+35
-5
lines changed

.goreleaser.yml

+35-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
version: 2
2+
13
project_name: external-dns-stackit-webhook
24
snapshot:
3-
name_template: '{{ .Tag }}-SNAPSHOT'
5+
version_template: '{{ .Tag }}-SNAPSHOT'
46
builds:
57
- id: external-dns-stackit-webhook
68
goos:
@@ -36,12 +38,10 @@ archives:
3638
- goos: windows
3739
format: zip
3840
dockers:
39-
- id: external-dns-stackit-webhook
41+
- id: external-dns-stackit-webhook-amd64
4042
use: buildx
4143
image_templates:
42-
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}"
43-
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest"
44-
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .ShortCommit }}"
44+
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}-amd64"
4545
goos: linux
4646
goarch: amd64
4747
build_flag_templates:
@@ -54,6 +54,36 @@ dockers:
5454
- --label=org.opencontainers.image.revision={{ .FullCommit }}
5555
- --label=org.opencontainers.image.licenses=Apache-2.0
5656
skip_push: false
57+
58+
- id: external-dns-stackit-webhook-arm64
59+
use: buildx
60+
image_templates:
61+
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}-arm64"
62+
goos: linux
63+
goarch: arm64
64+
build_flag_templates:
65+
- --label=org.opencontainers.image.title={{ .ProjectName }}
66+
- --label=org.opencontainers.image.description=stackit DNS webhook for external-dns
67+
- --label=org.opencontainers.image.url=https://{{ .Env.GITHUB_SERVER_URL }}/{{ .Env.GITHUB_REPOSITORY}}
68+
- --label=org.opencontainers.image.source=https://{{ .Env.GITHUB_SERVER_URL }}/{{ .Env.GITHUB_REPOSITORY}}
69+
- --label=org.opencontainers.image.version={{ .Version }}
70+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
71+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
72+
- --label=org.opencontainers.image.licenses=Apache-2.0
73+
- --label=org.opencontainers.image.platform.os=linux
74+
- --platform=linux
75+
skip_push: false
76+
77+
docker_manifests:
78+
- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}"
79+
image_templates:
80+
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}-amd64"
81+
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}-arm64"
82+
- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest"
83+
image_templates:
84+
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest-amd64"
85+
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest-arm64"
86+
5787
checksum:
5888
disable: false
5989
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"

0 commit comments

Comments
 (0)