stages:
- build
build:
stage: build
only:
- dev2.0
script:
- mvn clean package
- scp -r target/xxx.jar root@ip:/home/xxx-api/
- ssh root@ip "supervisorctl restart xxx-api"
stages:
- build
build:
stage: build
only:
- dev
script:
- npm config set registry http://xxx:8081/repository/npm
- npm install
- npm run build
- scp -r dist/* root@xxx:/home/xxx-front/
- ssh root@xxx "supervisorctl restart nginx"