Skip to content
Snippets Groups Projects
Unverified Commit 1c9294bb authored by Julian Tölle's avatar Julian Tölle Committed by GitHub
Browse files

feat: publish ARM container images (#420)

parent e1152b93
Branches
No related tags found
No related merge requests found
...@@ -14,13 +14,15 @@ builds: ...@@ -14,13 +14,15 @@ builds:
- linux - linux
goarch: goarch:
- amd64 - amd64
- arm64
- arm
binary: hcloud-cloud-controller-manager binary: hcloud-cloud-controller-manager
ldflags: ldflags:
- "-s -w -X github.com/hetznercloud/hcloud-cloud-controller-manager/hcloud.providerVersion={{ if not .IsSnapshot }}v{{ end }}{{ .Version }}" - "-s -w -X github.com/hetznercloud/hcloud-cloud-controller-manager/hcloud.providerVersion={{ if not .IsSnapshot }}v{{ end }}{{ .Version }}"
archives: archives:
- id: deployment-yamls - id: deployment-yamls
# builds: [""] builds: [""]
name_template: "{{ .ProjectName }}_{{ .Version }}_deployment_yamls" name_template: "{{ .ProjectName }}_{{ .Version }}_deployment_yamls"
wrap_in_directory: true wrap_in_directory: true
...@@ -30,11 +32,24 @@ dockers: ...@@ -30,11 +32,24 @@ dockers:
goarch: amd64 goarch: amd64
image_templates: ["hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-amd64"] image_templates: ["hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-amd64"]
use: buildx use: buildx
- build_flag_templates: [--platform=linux/arm64]
dockerfile: Dockerfile
goarch: arm64
image_templates: ["hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-arm64v8"]
use: buildx
- build_flag_templates: [--platform=linux/arm/v6]
dockerfile: Dockerfile
goarch: arm
goarm: 6
image_templates: ["hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-armv6"]
use: buildx
docker_manifests: docker_manifests:
- name_template: hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }} - name_template: hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}
image_templates: image_templates:
- hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-amd64 - hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-amd64
- hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-arm64v8
- hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-armv6
release: release:
ids: [""] ids: [""]
......
FROM --platform=$BUILDPLATFORM alpine:3.17 FROM alpine:3.17
RUN apk add --no-cache ca-certificates bash RUN apk add --no-cache ca-certificates bash
COPY hcloud-cloud-controller-manager /bin/hcloud-cloud-controller-manager COPY hcloud-cloud-controller-manager /bin/hcloud-cloud-controller-manager
ENTRYPOINT ["/bin/hcloud-cloud-controller-manager"] ENTRYPOINT ["/bin/hcloud-cloud-controller-manager"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment