diff --git a/.circleci/config.yml b/.circleci/config.yml index 08fcc74f..16903490 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/.goreleaser.yml b/.goreleaser.yml index e36aa667..577450a7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -22,6 +22,7 @@ builds: goos: - linux - darwin + - windows goarm: - 6 - 7 diff --git a/Makefile b/Makefile index 8149662e..719843d4 100644 --- a/Makefile +++ b/Makefile @@ -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 .