Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
stianst committed Mar 6, 2019
1 parent d8a3869 commit eea54eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ build: golang
go build -ldflags "${LFLAGS}" -o bin/${NAME}

release: clean golang deps
@mkdir -p release
mkdir -p release
$(foreach GOOS, $(PLATFORMS),\
$(foreach GOARCH, $(ARCHITECTURES), $(shell [ $(GOOS) = "windows" ] && EXT=".exe"; env GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0; \
go build -a -tags netgo -ldflags "-w ${LFLAGS}" -o bin/${NAME}$$EXT; \
$(foreach GOARCH, $(ARCHITECTURES), $(shell [ $(GOOS) = "windows" ] && EXT=".exe"; env GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 go build -a -tags netgo -ldflags "-w ${LFLAGS}" -o bin/${NAME}$$EXT; \
tar -czvf release/${NAME}-$(GOOS)-$(GOARCH).tar.gz -C bin/ ${NAME}$$EXT >/dev/null; \
sha1sum release/${NAME}-$(GOOS)-$(GOARCH).tar.gz | cut -d " " -f1 > release/${NAME}-$(GOOS)-$(GOARCH).tar.gz.sha1 )))

Expand Down Expand Up @@ -85,13 +84,13 @@ authors:
git log --format='%aN <%aE>' | sort -u > AUTHORS

dep-install:
@echo "--> Installing dependencies"
@dep ensure
echo "--> Installing dependencies"
dep ensure

deps:
@echo "--> Installing build dependencies"
@go get -u github.com/golang/dep/cmd/dep
@$(MAKE) dep-install
echo "--> Installing build dependencies"
go get -u github.com/golang/dep/cmd/dep
$(MAKE) dep-install

vet:
@echo "--> Running go vet $(VETARGS) ."
Expand Down
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ echo "--------------------------------------------------------------------------
echo "Building:"
echo ""

make release --trace
make release


echo "------------------------------------------------------------------------------------------------------------"
echo "Upload to jboss.org:"
echo ""

rsync -rv --protocol=28 $RELDIR/keycloak-gatekeeper/release/* [email protected]:/downloads_htdocs/keycloak/$VERSION/gatekeeper/
rsync -rv --protocol=28 $DIR/release/* [email protected]:/downloads_htdocs/keycloak/$VERSION/gatekeeper/


echo "------------------------------------------------------------------------------------------------------------"
Expand Down

0 comments on commit eea54eb

Please sign in to comment.