Skip to content

Commit bb0ab45

Browse files
committed
[build] Add support for darwin/arm64 arch
More and more users are now using M1 chips for development so publishing kubebuilder-tools in darwin/arm64 arch will enable them to use the project natively on their machines without needing to apply custom ways of solving missing dependencies. Addresses kubernetes-sigs#2505 Signed-off-by: dntosas <[email protected]>
1 parent f53828d commit bb0ab45

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

build/.goreleaser.yml

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ builds:
4242
- linux_arm64
4343
- linux_ppc64le
4444
- darwin_amd64
45+
- darwin_arm64
4546
env:
4647
- KUBERNETES_VERSION=1.23.1
4748
- CGO_ENABLED=0

build/cloudbuild_snapshot.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ steps:
3939
args: ["tar", "-zcvf", "kubebuilder_darwin_amd64.tar.gz", "-C", "dist/kubebuilder_darwin_amd64", "kubebuilder"]
4040
- name: "gcr.io/cloud-builders/gsutil"
4141
args: ["-h", "Content-Type:application/gzip", "cp", "kubebuilder_darwin_amd64.tar.gz", "gs://kubebuilder-release/kubebuilder_master_darwin_amd64.tar.gz"]
42+
- name: "ubuntu"
43+
args: ["tar", "-zcvf", "kubebuilder_darwin_arm64.tar.gz", "-C", "dist/kubebuilder_darwin_arm64", "kubebuilder"]
44+
- name: "gcr.io/cloud-builders/gsutil"
45+
args: ["-h", "Content-Type:application/gzip", "cp", "kubebuilder_darwin_arm64.tar.gz", "gs://kubebuilder-release/kubebuilder_master_darwin_arm64.tar.gz"]

0 commit comments

Comments
 (0)