Skip to content

Commit

Permalink
[build] Add support for darwin/arm64 arch
Browse files Browse the repository at this point in the history
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 #2505

Signed-off-by: dntosas <ntosas@gmail.com>
  • Loading branch information
dntosas committed Feb 20, 2022
1 parent f53828d commit bb0ab45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ builds:
- linux_arm64
- linux_ppc64le
- darwin_amd64
- darwin_arm64
env:
- KUBERNETES_VERSION=1.23.1
- CGO_ENABLED=0
Expand Down
4 changes: 4 additions & 0 deletions build/cloudbuild_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ steps:
args: ["tar", "-zcvf", "kubebuilder_darwin_amd64.tar.gz", "-C", "dist/kubebuilder_darwin_amd64", "kubebuilder"]
- name: "gcr.io/cloud-builders/gsutil"
args: ["-h", "Content-Type:application/gzip", "cp", "kubebuilder_darwin_amd64.tar.gz", "gs://kubebuilder-release/kubebuilder_master_darwin_amd64.tar.gz"]
- name: "ubuntu"
args: ["tar", "-zcvf", "kubebuilder_darwin_arm64.tar.gz", "-C", "dist/kubebuilder_darwin_arm64", "kubebuilder"]
- name: "gcr.io/cloud-builders/gsutil"
args: ["-h", "Content-Type:application/gzip", "cp", "kubebuilder_darwin_arm64.tar.gz", "gs://kubebuilder-release/kubebuilder_master_darwin_arm64.tar.gz"]

0 comments on commit bb0ab45

Please sign in to comment.