Коммит a6317b49 создал по автору avathar's avatar avathar
Просмотр файлов

Update .gitlab-ci.yml file

владелец 2ae9c2c2
......@@ -2,14 +2,6 @@ image: node:latest
stages:
- build
- deploy
before_script:
- echo "Before script"
- echo "GRAPHQL_URI=$GRAPHQL_URI" >> .env
- echo "APP_HOST=$APP_HOST" >> .env
- echo "CAPACITOR_GRAPHQL_URI=$CAPACITOR_GRAPHQL_URI" >> .env
- echo "DEBUG=$DEBUG" >> .env
- cat .env
- cp .env universo-frontend/.env
cache:
paths:
- universo-frontend/node_modules/
......@@ -17,21 +9,27 @@ cache:
build_artifact:
stage: build
script:
- echo "GRAPHQL_URI=$GRAPHQL_URI" >> .env
- echo "APP_HOST=$APP_HOST" >> .env
- echo "CAPACITOR_GRAPHQL_URI=$CAPACITOR_GRAPHQL_URI" >> .env
- echo "DEBUG=$DEBUG" >> .env
- cat .env
- cp .env universo-frontend/.env
- cd universo-frontend/
- npm ci
- npx quasar build
artifacts:
when: on_success
expire_in: 30 days
name: nova_universo_pro_front_$CI_JOB_NAME
name: nova_universo_pro_front
paths:
- "universo-frontend/dist"
deploy_spa:
stage: deploy
script:
- pwd
- sudo systemctl stop nginx
- sudo -u front rm -rf /var/www/front
- sudo -u front cp -r dist/spa /var/www/front
- sudo systemctl start nginx
# deploy_spa:
# stage: deploy
# script:
# - pwd
# - sudo systemctl stop nginx
# - sudo -u front rm -rf /var/www/front
# - sudo -u front cp -r dist/spa /var/www/front
# - sudo systemctl start nginx
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать