🚧 Set permissions on front release

Signed-off-by: mathieu.brunot <mb.mathieu.brunot@gmail.com>
This commit is contained in:
mathieu.brunot 2019-06-11 22:56:24 +02:00
parent 06c830dd3c
commit 9664fe4a61
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0

View file

@ -53,6 +53,7 @@ function build-release-frontend-local {
mkdir -p $HOME/.m2 mkdir -p $HOME/.m2
rm -rf ./frontend/node_modules rm -rf ./frontend/node_modules
chmod 777 ./frontend
CONTAINER=$IMGNAME:latest CONTAINER=$IMGNAME:latest
@ -63,7 +64,7 @@ function build-release-frontend-local {
-v $HOME/.m2:/home/uxbox/.m2 \ -v $HOME/.m2:/home/uxbox/.m2 \
-e UXBOX_API_URL="/api" \ -e UXBOX_API_URL="/api" \
-e UXBOX_VIEW_URL="/view" \ -e UXBOX_VIEW_URL="/view" \
$CONTAINER cd /home/uxbox/uxbox/frontend && ./scripts/build-release.sh $CONTAINER ./scripts/build-release.sh
} }
function build-release-frontend { function build-release-frontend {
@ -85,7 +86,7 @@ function build-release-backend-local {
# -w /home/uxbox/uxbox/backend \ # -w /home/uxbox/uxbox/backend \
# -v `pwd`:/home/uxbox/uxbox \ # -v `pwd`:/home/uxbox/uxbox \
# -v $HOME/.m2:/home/uxbox/.m2 \ # -v $HOME/.m2:/home/uxbox/.m2 \
# $CONTAINER cd /home/uxbox/uxbox/backend && ./scripts/prepare-release.sh # $CONTAINER ./scripts/prepare-release.sh
rm -rf backend/dist || exit 1; rm -rf backend/dist || exit 1;
rsync -avr \ rsync -avr \
--exclude="/test" \ --exclude="/test" \