Drone setup.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
aminecmi 2022-09-29 15:12:08 +02:00
parent 695746a507
commit 9245d33515

View File

@ -19,11 +19,8 @@ steps:
image: node:14 image: node:14
commands: commands:
- npm install - npm install
- npm run lint - npm run build
- npm run build:prod - npm run test
environment:
VUE_APP_API_BASE_URL:
from_secret: baseurl
- name: saveNodeModules - name: saveNodeModules
image: drillster/drone-volume-cache image: drillster/drone-volume-cache
@ -65,10 +62,7 @@ steps:
- name: build - name: build
image: node:14 image: node:14
commands: commands:
- npm run build:prod - npm run build
environment:
VUE_APP_API_BASE_URL:
from_secret: baseurl
- name: scpFiles - name: scpFiles
image: appleboy/drone-scp image: appleboy/drone-scp
@ -78,7 +72,7 @@ steps:
key: key:
from_secret: privateKey from_secret: privateKey
port: 22 port: 22
target: /home/ubuntu/courses target: /home/ubuntu/cv
source: dist/* source: dist/*
- name: deploy - name: deploy
@ -90,11 +84,11 @@ steps:
from_secret: privateKey from_secret: privateKey
command_timeout: 2m command_timeout: 2m
script: script:
- cd /home/ubuntu/courses - cd /home/ubuntu/cv
- mv dist/* ./ - mv dist/* ./
- sudo chown www-data:www-data ./* - sudo chown www-data:www-data ./*
- sudo rm -rf /var/www/amine/courses/* - sudo rm -rf /var/www/amine/CV2/*
- sudo mv ./* /var/www/amine/courses/ - sudo mv ./* /var/www/amine/CV2/
trigger: trigger:
event: event:
- promote - promote