💚 Change release command

Signed-off-by: mathieu.brunot <mb.mathieu.brunot@gmail.com>
This commit is contained in:
mathieu.brunot 2019-06-11 22:39:41 +02:00
parent 15ea62c8d7
commit 06c830dd3c
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
4 changed files with 32 additions and 2 deletions

View file

@ -51,13 +51,19 @@ function build-release-frontend-local {
build-devenv
fi
mkdir -p $HOME/.m2
rm -rf ./frontend/node_modules
CONTAINER=$IMGNAME:latest
echo "Running development image $CONTAINER to build frontend release..."
docker run -ti --rm \
-w /home/uxbox/uxbox/frontend \
-v `pwd`:/home/uxbox/uxbox \
-v $HOME/.m2:/home/uxbox/.m2 \
-e UXBOX_API_URL="/api" \
-e UXBOX_VIEW_URL="/view" \
$IMGNAME:latest ./scripts/build-release.sh
$CONTAINER cd /home/uxbox/uxbox/frontend && ./scripts/build-release.sh
}
function build-release-frontend {
@ -69,6 +75,17 @@ function build-release-frontend {
}
function build-release-backend-local {
#if ! $(docker images | grep $IMGNAME | grep -q $REV); then
# build-devenv
#fi
#mkdir -p $HOME/.m2
#CONTAINER=$IMGNAME:latest
#echo "Running development image $CONTAINER to build backend release..."
#docker run -ti --rm \
# -w /home/uxbox/uxbox/backend \
# -v `pwd`:/home/uxbox/uxbox \
# -v $HOME/.m2:/home/uxbox/.m2 \
# $CONTAINER cd /home/uxbox/uxbox/backend && ./scripts/prepare-release.sh
rm -rf backend/dist || exit 1;
rsync -avr \
--exclude="/test" \