mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 06:58:58 -05:00
🚧 💚 Fix release build
This commit is contained in:
parent
c9cf540d8e
commit
7324592f1f
3 changed files with 11 additions and 8 deletions
|
@ -23,10 +23,12 @@ before_script:
|
|||
- env | sort
|
||||
|
||||
script:
|
||||
- ./frontend/scripts/build-tests
|
||||
- cd ./frontend
|
||||
- ./scripts/build-tests
|
||||
- nvm install $NODE_VERSION
|
||||
- node --version
|
||||
- node ./frontend/out/tests.js
|
||||
- node ./out/tests.js
|
||||
- cd ..
|
||||
- ./manage.sh release-local
|
||||
- ./manage.sh release-docker
|
||||
|
||||
|
@ -39,3 +41,4 @@ notifications:
|
|||
|
||||
env:
|
||||
- NODE_VERSION=7.7.1
|
||||
- NODE_VERSION=10.15.1
|
||||
|
|
|
@ -5,8 +5,8 @@ ENV LEIN_ROOT=TRUE
|
|||
# Copy backend source and build release
|
||||
COPY . /home/uxbox/backend
|
||||
RUN set -ex; \
|
||||
rm -f Dockerfile docker-entrypoint.sh; \
|
||||
cd backend; \
|
||||
rm -f Dockerfile docker-entrypoint.sh; \
|
||||
bash -c "/home/uxbox/backend/scripts/dist.sh"
|
||||
|
||||
|
||||
|
|
|
@ -6,17 +6,17 @@ ENV LEIN_ROOT=TRUE
|
|||
# Copy frontend source and build release
|
||||
COPY . /home/uxbox/frontend
|
||||
RUN set -ex; \
|
||||
rm -f Dockerfile; \
|
||||
cd frontend; \
|
||||
rm -f Dockerfile; \
|
||||
rm -rf ./dist ./node_modules; \
|
||||
sed -i \
|
||||
-e 's|"uxbox.config.url" ".*"|"uxbox.config.url" "${API_URL}/api"|g' \
|
||||
scripts/figwheel.clj; \
|
||||
npm install; \
|
||||
npm run dist; \
|
||||
./scripts/dist-main; \
|
||||
./scripts/dist-view; \
|
||||
./scripts/dist-worker; \
|
||||
rm -rf ./dist/**/*.gz ./dist/**/*.br
|
||||
bash -c "/home/uxbox/frontend/scripts/dist-main"; \
|
||||
bash -c "/home/uxbox/frontend/scripts/dist-view"; \
|
||||
bash -c "/home/uxbox/frontend/scripts/dist-worker"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue