Skip to content

Commit

Permalink
Windows build support (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Reed authored Sep 27, 2021
1 parent f149008 commit fc5f59f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,9 @@ jobs:
- setup_remote_docker:
version: 20.10.6
- *enable_experimental_docker_features
- *install_vault
- rok8s/get_vault_env:
vault_path: repo/global/env
- rok8s/docker_login:
registry: "quay.io"
username: $FAIRWINDS_QUAY_USER
password-variable: FAIRWINDS_QUAY_TOKEN
- run: go get github.com/markbates/pkger/cmd/pkger
- run: pkger
- run: goreleaser --debug --snapshot
- run: goreleaser --snapshot
publish_docs:
docker:
- image: cimg/node:15.5.1
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ builds:
goos:
- linux
- darwin
- windows
goarm:
- 6
- 7
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ clean:
build-linux:
pkger
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME) -ldflags "-X main.version=$(VERSION) -X main.commit=$(COMMIT) -s -w" -v
build-windows:
pkger
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME) -ldflags "-X main.version=$(VERSION) -X main.commit=$(COMMIT) -s -w" -v
build-docker: build-linux
docker build --build-arg version=$(VERSION) --build-arg commit=$(COMMIT) -t quay.io/reactiveops/$(BINARY_NAME):dev .

0 comments on commit fc5f59f

Please sign in to comment.