From 6646311433435b940f3cec0f03e1dbe7c05e2903 Mon Sep 17 00:00:00 2001 From: Adam McClenaghan Date: Tue, 31 Oct 2023 16:35:45 +0000 Subject: [PATCH 1/3] Add build for ARM64 --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0121837..ac05779 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,12 @@ RELEASE := $(shell git describe --tags) release-binaries: GOOS=linux GOARCH=amd64 go build -o terraform.d/plugins/linux_amd64/terraform-provider-kustomization_$(RELEASE) tar -caf terraform-provider-kustomization-linux-amd64_$(RELEASE).tgz terraform.d/plugins/linux_amd64/terraform-provider-kustomization_$(RELEASE) - + GOOS=darwin GOARCH=amd64 go build -o terraform.d/plugins/darwin_amd64/terraform-provider-kustomization_$(RELEASE) - tar -caf terraform-provider-kustomization-darwin-amd64_$(RELEASE).tgz terraform.d/plugins/darwin_amd64/terraform-provider-kustomization_$(RELEASE) + tar -caf terraform-provider-kustomization-darwin-arm64_$(RELEASE).tgz terraform.d/plugins/darwin_amd64/terraform-provider-kustomization_$(RELEASE) + + GOOS=darwin GOARCH=arm64 go build -o terraform.d/plugins/darwin_arm64/terraform-provider-kustomization_$(RELEASE) + tar -caf terraform-provider-kustomization-darwin-arm64_$(RELEASE).tgz terraform.d/plugins/darwin_arm64/terraform-provider-kustomization_$(RELEASE) GOOS=windows GOARCH=amd64 go build -o terraform.d/plugins/windows_amd64/terraform-provider-kustomization_$(RELEASE) - tar -caf terraform-provider-kustomization-windows-amd64_$(RELEASE).tgz terraform.d/plugins/windows_amd64/terraform-provider-kustomization_$(RELEASE) \ No newline at end of file + tar -caf terraform-provider-kustomization-windows-amd64_$(RELEASE).tgz terraform.d/plugins/windows_amd64/terraform-provider-kustomization_$(RELEASE) From 5c1716be2c2e894e871f02729f80a32358ae6ead Mon Sep 17 00:00:00 2001 From: Adam McClenaghan Date: Tue, 31 Oct 2023 16:50:38 +0000 Subject: [PATCH 2/3] Try to fix github actions --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5ef3f5e..fc8d8c7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -95,6 +95,9 @@ jobs: uses: engineerd/setup-kind@v0.1.0 with: version: "v0.6.1" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + - name: 'Set KUBECONFIG env var' run: | From 8f4053731ee945814073da235fa1f3618d52e7ff Mon Sep 17 00:00:00 2001 From: Adam McClenaghan Date: Tue, 31 Oct 2023 16:55:07 +0000 Subject: [PATCH 3/3] Fix 'Setup kind' for other action steps --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc8d8c7..e579520 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,8 @@ jobs: uses: engineerd/setup-kind@v0.1.0 with: version: "v0.6.1" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - name: 'Setup Go' uses: actions/setup-go@v1 @@ -121,6 +123,8 @@ jobs: uses: engineerd/setup-kind@v0.1.0 with: version: "v0.6.1" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - name: 'Download terraform binary' uses: actions/download-artifact@v1 @@ -164,6 +168,8 @@ jobs: uses: engineerd/setup-kind@v0.1.0 with: version: "v0.6.1" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - name: 'Download terraform binary' uses: actions/download-artifact@v1