Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Build and upload Windows binary of fluxctl
Browse files Browse the repository at this point in the history
  • Loading branch information
squaremo committed Aug 31, 2018
1 parent 35a5feb commit 7a84478
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ all: $(GOPATH)/bin/fluxctl $(GOPATH)/bin/fluxd $(GOPATH)/bin/helm-operator build

release-bins:
for arch in amd64; do \
for os in linux darwin; do \
for os in linux darwin windows; do \
CGO_ENABLED=0 GOOS=$$os GOARCH=$$arch go build -o "build/fluxctl_"$$os"_$$arch" $(LDFLAGS) -ldflags "-X main.version=$(shell ./docker/image-tag)" ./cmd/fluxctl/; \
done; \
done
Expand Down Expand Up @@ -67,7 +67,6 @@ build/kubectl: cache/kubectl-$(KUBECTL_VERSION) docker/kubectl.version
cache/kubectl-$(KUBECTL_VERSION):
mkdir -p cache
curl -L -o $@ "https://storage.googleapis.com/kubernetes-release/release/$(KUBECTL_VERSION)/bin/linux/amd64/kubectl"

$(GOPATH)/bin/fluxctl: $(FLUXCTL_DEPS)
$(GOPATH)/bin/fluxctl: ./cmd/fluxctl/*.go
go install ./cmd/fluxctl
Expand Down
2 changes: 1 addition & 1 deletion bin/upload-binaries
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GITHUB_REPO=${GITHUB_REPO:-"${CIRCLE_PROJECT_REPONAME}"}
GITHUB_TAG=${GITHUB_TAG:-"${CIRCLE_TAG}"}

for arch in amd64; do
for os in linux darwin; do
for os in linux darwin windows; do
echo "= Uploading fluxctl_${os}_${arch} to GH release ${GITHUB_TAG}"
github-release upload \
--user ${GITHUB_USER} \
Expand Down

0 comments on commit 7a84478

Please sign in to comment.