Skip to content

Commit

Permalink
chore(cli): add darwin arm64 to build and release
Browse files Browse the repository at this point in the history
Signed-off-by: zachaller <[email protected]>
  • Loading branch information
zachaller committed Sep 26, 2022
1 parent ae56d91 commit f245088
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ jobs:
dist/kubectl-argo-rollouts-linux-amd64
dist/kubectl-argo-rollouts-linux-arm64
dist/kubectl-argo-rollouts-darwin-amd64
dist/kubectl-argo-rollouts-darwin-arm64
dist/kubectl-argo-rollouts-windows-amd64
manifests/dashboard-install.yaml
manifests/install.yaml
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ plugin-linux: ui/dist
plugin-darwin: ui/dist
cp -r ui/dist/app/* server/static
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -v -i -ldflags '${LDFLAGS}' -o ${DIST_DIR}/${PLUGIN_CLI_NAME}-darwin-amd64 ./cmd/kubectl-argo-rollouts
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -v -i -ldflags '${LDFLAGS}' -o ${DIST_DIR}/${PLUGIN_CLI_NAME}-darwin-arm64 ./cmd/kubectl-argo-rollouts

.PHONY: plugin-windows
plugin-windows: ui/dist
Expand Down
2 changes: 1 addition & 1 deletion hack/build-release-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DOCKER_BUILDKIT=1 docker build --iidfile ${rollout_iid_file} --build-arg MAKE_TA
rollout_iid=$(cat ${rollout_iid_file})
container_id=$(docker create ${rollout_iid})

for plat in linux-amd64 linux-arm64 darwin-amd64 windows-amd64; do
for plat in linux-amd64 linux-arm64 darwin-amd64 darwin-arm64 windows-amd64; do
docker cp ${container_id}:/go/src/github.com/argoproj/argo-rollouts/dist/kubectl-argo-rollouts-${plat} ${SRCROOT}/dist
done
docker rm -v ${container_id}
Expand Down

0 comments on commit f245088

Please sign in to comment.