File: /var/www/quadcode/.gitlab-ci-foach.yml
variables:
GIT_STRATEGY: none
deploy:test:
only:
- dev
script:
- whoami
- cd /var/www/quadcode
- git fetch
- git reset --hard origin/dev
- /usr/bin/php8.0 /usr/bin/composer install
- /usr/bin/php8.0 artisan migrate
- export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" --no-use
- nvm use 16
- npx yarn install
- npx yarn build
- cd frontend
- source ~/.nvm/nvm.sh
- npx yarn install
- npx yarn build
- cd ../one-time-popup
- nvm use 22.12.0
- npx yarn install
- npx yarn build