Skip to content

Commit

Permalink
Add support for Arm64 Docker images (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
yannh committed May 14, 2023
1 parent ce2f6de commit 65cfe7e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,24 @@ dockers:
- "--platform=linux/amd64"
goos: linux
goarch: amd64
- image_templates:
- 'ghcr.io/{{.Env.GIT_OWNER}}/kubeconform:latest-arm64'
- 'ghcr.io/{{.Env.GIT_OWNER}}/kubeconform:{{ .Tag }}-arm64'
dockerfile: Dockerfile
build_flag_templates:
- "--platform=darwin/arm64"
goos: darwin
goarch: arm64
use: buildx
- image_templates:
- 'ghcr.io/{{.Env.GIT_OWNER}}/kubeconform:latest-arm64-alpine'
- 'ghcr.io/{{.Env.GIT_OWNER}}/kubeconform:{{ .Tag }}-arm64-alpine'
dockerfile: Dockerfile-alpine
build_flag_templates:
- "--platform=darwin/arm64"
goos: darwin
goarch: arm64
use: buildx

checksum:
name_template: 'CHECKSUMS'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.14 as certs
FROM alpine:3.14
LABEL org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.source="https://github.com/yannh/kubeconform/" \
org.opencontainers.image.description="A Kubernetes manifests validation tool" \
Expand Down

0 comments on commit 65cfe7e

Please sign in to comment.