variables:
PROJECT_NAME: "todo-land"
deploy:test:
only:
- dev
script:
- cd /var/www/todo_landing
- git fetch
- git reset --hard origin/dev
- export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" --no-use
- nvm use v24.7.0
- npx yarn
- npx yarn build
deploy:prod:
resource_group: deployer
only:
- main
script:
- cd /projects/$PROJECT_NAME/repo
- git fetch --all
- git reset --hard origin/main
- ./build.sh prod