Skip to content

Commit

Permalink
Merge pull request #32 from rimusz/set-goproxy
Browse files Browse the repository at this point in the history
set gocenter as goproxy
  • Loading branch information
jdolitsky authored Oct 17, 2019
2 parents 35d056b + afb050b commit a4261fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
env:
- GO111MODULE=on
- GOPROXY=https://gocenter.io
before:
hooks:
- go mod download
builds:
- main: ./cmd/helmpush
binary: ./bin/helmpush
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ HAS_VENV := $(shell command -v virtualenv;)
build: build_linux build_mac build_windows

build_windows: export GOARCH=amd64
build_windows: export GO111MODULE=on
build_windows: export GOPROXY=https://gocenter.io
build_windows:
@GOOS=windows go build -v --ldflags="-w -X main.Version=$(VERSION) -X main.Revision=$(REVISION)" \
-o bin/windows/amd64/helmpush cmd/helmpush/main.go # windows
Expand All @@ -16,6 +18,8 @@ link_windows:

build_linux: export GOARCH=amd64
build_linux: export CGO_ENABLED=0
build_linux: export GO111MODULE=on
build_linux: export GOPROXY=https://gocenter.io
build_linux:
@GOOS=linux go build -v --ldflags="-w -X main.Version=$(VERSION) -X main.Revision=$(REVISION)" \
-o bin/linux/amd64/helmpush cmd/helmpush/main.go # linux
Expand All @@ -25,6 +29,8 @@ link_linux:

build_mac: export GOARCH=amd64
build_mac: export CGO_ENABLED=0
build_mac: export GO111MODULE=on
build_mac: export GOPROXY=https://gocenter.io
build_mac:
@GOOS=darwin go build -v --ldflags="-w -X main.Version=$(VERSION) -X main.Revision=$(REVISION)" \
-o bin/darwin/amd64/helmpush cmd/helmpush/main.go # mac osx
Expand Down

0 comments on commit a4261fb

Please sign in to comment.