make various release script vars overridable
and pass SUDO to the `make` invocation
This commit is contained in:
1 parent
6c0218d26a
commit
1a4aceea21
1 file changed
+7
-5
+7
-5
@@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
SUDO=sudo
|
SUDO=${SUDO-sudo}
|
||||||
|
GITHUB_USER=${GITHUB_USER:-zettio}
|
||||||
|
DOCKERHUB_USER=${DOCKERHUB_USER:-zettio}
|
||||||
|
RELEASE_NAME=${RELEASE_NAME:-"Weave"}
|
||||||
|
RELEASE_DESCRIPTION=${RELEASE_DESCRIPTION:-"Weaving Containers into Applications"}
|
||||||
|
|
||||||
PWD=`pwd`
|
PWD=`pwd`
|
||||||
GITHUB_USER=zettio
|
|
||||||
DOCKERHUB_USER=zettio
|
|
||||||
RELEASE_NAME="Weave"
|
|
||||||
RELEASE_DESCRIPTION="Weaving Containers into Applications"
|
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
## Get the new version number from the most recent tag
|
## Get the new version number from the most recent tag
|
||||||
@@ -51,6 +52,7 @@ build() {
|
|||||||
## (library versions?)
|
## (library versions?)
|
||||||
sed -i "/SCRIPT_VERSION=/ c\SCRIPT_VERSION=\"$VERSION\"" ./weave
|
sed -i "/SCRIPT_VERSION=/ c\SCRIPT_VERSION=\"$VERSION\"" ./weave
|
||||||
make \
|
make \
|
||||||
|
SUDO=$SUDO \
|
||||||
WEAVE_VERSION=$VERSION \
|
WEAVE_VERSION=$VERSION \
|
||||||
WEAVER_IMAGE=$DOCKERHUB_USER/weave \
|
WEAVER_IMAGE=$DOCKERHUB_USER/weave \
|
||||||
WEAVEDNS_IMAGE=$DOCKERHUB_USER/weavedns \
|
WEAVEDNS_IMAGE=$DOCKERHUB_USER/weavedns \
|
||||||
|
|||||||
Reference in new issue
Block a user