0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-28 15:41:25 -05:00

💚 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

@ -37,6 +37,9 @@ env:
- NODE_VERSION=10.16.0 COMMAND=clean
- NODE_VERSION=10.16.0 COMMAND=build-devenv
#- NODE_VERSION=10.16.0 COMMAND=run-devenv
# TODO Add unit test command(s)
#- NODE_VERSION=10.16.0 COMMAND=test
- NODE_VERSION=10.16.0 COMMAND=build-release
- NODE_VERSION=10.16.0 COMMAND=build-release-frontend
- NODE_VERSION=10.16.0 COMMAND=build-release-backend
- NODE_VERSION=10.16.0 COMMAND=run-release

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
rm -rf ../dist || exit 1;
rsync -avr \
--exclude="/test" \
--exclude="/resources/public/media" \
--exclude="/target" \
--exclude="/scripts" \
--exclude="/.*" \
../ ../dist/;

View file

@ -1,5 +1,5 @@
#!/usr/bin/env zsh
set -e
echo "UXBOX Docker entrypoint initialization..."
echo "UXBOX Docker Dev entrypoint initialization..."
exec "$@"

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" \