This commit is contained in:
parent
695746a507
commit
9245d33515
20
.drone.yml
20
.drone.yml
@ -19,11 +19,8 @@ steps:
|
||||
image: node:14
|
||||
commands:
|
||||
- npm install
|
||||
- npm run lint
|
||||
- npm run build:prod
|
||||
environment:
|
||||
VUE_APP_API_BASE_URL:
|
||||
from_secret: baseurl
|
||||
- npm run build
|
||||
- npm run test
|
||||
|
||||
- name: saveNodeModules
|
||||
image: drillster/drone-volume-cache
|
||||
@ -65,10 +62,7 @@ steps:
|
||||
- name: build
|
||||
image: node:14
|
||||
commands:
|
||||
- npm run build:prod
|
||||
environment:
|
||||
VUE_APP_API_BASE_URL:
|
||||
from_secret: baseurl
|
||||
- npm run build
|
||||
|
||||
- name: scpFiles
|
||||
image: appleboy/drone-scp
|
||||
@ -78,7 +72,7 @@ steps:
|
||||
key:
|
||||
from_secret: privateKey
|
||||
port: 22
|
||||
target: /home/ubuntu/courses
|
||||
target: /home/ubuntu/cv
|
||||
source: dist/*
|
||||
|
||||
- name: deploy
|
||||
@ -90,11 +84,11 @@ steps:
|
||||
from_secret: privateKey
|
||||
command_timeout: 2m
|
||||
script:
|
||||
- cd /home/ubuntu/courses
|
||||
- cd /home/ubuntu/cv
|
||||
- mv dist/* ./
|
||||
- sudo chown www-data:www-data ./*
|
||||
- sudo rm -rf /var/www/amine/courses/*
|
||||
- sudo mv ./* /var/www/amine/courses/
|
||||
- sudo rm -rf /var/www/amine/CV2/*
|
||||
- sudo mv ./* /var/www/amine/CV2/
|
||||
trigger:
|
||||
event:
|
||||
- promote
|
||||
|
Loading…
Reference in New Issue
Block a user