Update release target
This commit is contained in:
parent
d472cf1645
commit
d08594436f
7
Makefile
7
Makefile
@ -54,3 +54,10 @@ release: lint test
|
|||||||
mkdir release
|
mkdir release
|
||||||
GOOS=darwin GOARCH=amd64 go build -ldflags="-X main.VERSION=${VERSION}" -o release/$(BINARY)-darwin-amd64 github.com/pusher/oauth2_proxy
|
GOOS=darwin GOARCH=amd64 go build -ldflags="-X main.VERSION=${VERSION}" -o release/$(BINARY)-darwin-amd64 github.com/pusher/oauth2_proxy
|
||||||
GOOS=linux GOARCH=amd64 go build -ldflags="-X main.VERSION=${VERSION}" -o release/$(BINARY)-linux-amd64 github.com/pusher/oauth2_proxy
|
GOOS=linux GOARCH=amd64 go build -ldflags="-X main.VERSION=${VERSION}" -o release/$(BINARY)-linux-amd64 github.com/pusher/oauth2_proxy
|
||||||
|
GOOS=windows GOARCH=amd64 go build -ldflags="-X main.VERSION=${VERSION}" -o release/$(BINARY)-windows-amd64 github.com/pusher/oauth2_proxy
|
||||||
|
shasum -a 256 release/$(BINARY)-darwin-amd64 > release/$(BINARY)-darwin-amd64-sha256sum.txt
|
||||||
|
shasum -a 256 release/$(BINARY)-linux-amd64 > release/$(BINARY)-linux-amd64-sha256sum.txt
|
||||||
|
shasum -a 256 release/$(BINARY)-windows-amd64 > release/$(BINARY)-windows-amd64-sha256sum.txt
|
||||||
|
tar -cvf release/$(BINARY)-$(VERSION).darwin-amd64.$(GO_VERSION).tar.gz release/$(BINARY)-darwin-amd64
|
||||||
|
tar -cvf release/$(BINARY)-$(VERSION).linux-amd64.$(GO_VERSION).tar.gz release/$(BINARY)-linux-amd64
|
||||||
|
tar -cvf release/$(BINARY)-$(VERSION).windows-amd64.$(GO_VERSION).tar.gz release/$(BINARY)-windows-amd64
|
||||||
|
3
configure
vendored
3
configure
vendored
@ -95,6 +95,8 @@ check_go_version() {
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
VERSION=$(${tools[go]} version | ${tools[awk]} '{print $3}')
|
||||||
|
tools["go_version"]="${VERSION}"
|
||||||
}
|
}
|
||||||
|
|
||||||
check_docker_version() {
|
check_docker_version() {
|
||||||
@ -129,6 +131,7 @@ echo
|
|||||||
cat <<- EOF > .env
|
cat <<- EOF > .env
|
||||||
MAKE := "${tools[make]}"
|
MAKE := "${tools[make]}"
|
||||||
GO := "${tools[go]}"
|
GO := "${tools[go]}"
|
||||||
|
GO_VERSION := ${tools[go_version]}
|
||||||
DEP := "${tools[dep]}"
|
DEP := "${tools[dep]}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user