Skip to content

Commit d9ba36a

Browse files
feat: create windows version for CLI (argoproj#1517)
Signed-off-by: Kostis Kapelonis <[email protected]>
1 parent 01879e4 commit d9ba36a

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ jobs:
129129
files: |
130130
dist/kubectl-argo-rollouts-linux-amd64
131131
dist/kubectl-argo-rollouts-darwin-amd64
132+
dist/kubectl-argo-rollouts-windows-amd64
132133
manifests/install.yaml
133134
manifests/namespace-install.yaml
134135
env:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RUN touch ui/dist/node_modules.marker && \
6363
touch ui/dist/app/index.html && \
6464
find ui/dist
6565

66-
ARG MAKE_TARGET="controller plugin-linux plugin-darwin"
66+
ARG MAKE_TARGET="controller plugin-linux plugin-darwin plugin-windows"
6767
RUN make ${MAKE_TARGET}
6868

6969
####################################################################################################

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ plugin-darwin: ui/dist
197197
cp -r ui/dist/app/* server/static
198198
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
199199

200+
.PHONY: plugin-windows
201+
plugin-windows: ui/dist
202+
cp -r ui/dist/app/* server/static
203+
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -v -i -ldflags '${LDFLAGS}' -o ${DIST_DIR}/${PLUGIN_CLI_NAME}-windows-amd64 ./cmd/kubectl-argo-rollouts
204+
200205
.PHONY: docs
201206
docs:
202207
go run ./hack/gen-docs/main.go

hack/build-release-plugins.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ docker build --iidfile ${rollout_iid_file} --target argo-rollouts-build .
1010
rollout_iid=$(cat ${rollout_iid_file})
1111
container_id=$(docker create ${rollout_iid})
1212

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

0 commit comments

Comments
 (0)