forked from louketo/louketo-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sh
executable file
·30 lines (20 loc) · 950 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash -e
DIR="$PWD"
VERSION=`./get-version.sh`
echo "Version: $VERSION"
TMP=`mktemp -d`
export GOPATH=$TMP/go
mkdir -p $GOPATH/src/github.com/keycloak
ln -s $DIR $GOPATH/src/github.com/keycloak/keycloak-gatekeeper
cd $GOPATH/src/github.com/keycloak/keycloak-gatekeeper
echo "------------------------------------------------------------------------------------------------------------"
echo "Building:"
echo ""
make release
echo "------------------------------------------------------------------------------------------------------------"
echo "Upload to jboss.org:"
echo ""
rsync -rv --protocol=28 $DIR/release/* [email protected]:/downloads_htdocs/keycloak/$VERSION/gatekeeper/
echo "------------------------------------------------------------------------------------------------------------"
echo "Done"
echo "------------------------------------------------------------------------------------------------------------"