diff --git a/.drone.yml b/.drone.yml index 818b59d..c927f15 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,18 +15,7 @@ steps: SONAR_LOGIN: from_secret: sonarScannerLogin - - name: restore-cache - image: drillster/drone-volume-cache - volumes: - - name: cache - path: /cache - settings: - restore: true - mount: - - ./node_modules - cache_key: [ DRONE_REPO_NAME, DRONE_BRANCH ] - - - name: build + - name: lintAndBuild image: node:14 commands: - npm install @@ -36,7 +25,7 @@ steps: VUE_APP_API_BASE_URL: from_secret: baseurl - - name: rebuild-cache + - name: saveNodeModules image: drillster/drone-volume-cache volumes: - name: cache @@ -62,7 +51,7 @@ type: docker name: Deploy steps: - - name: restore-cache + - name: getNodeModules image: drillster/drone-volume-cache volumes: - name: cache @@ -76,13 +65,12 @@ steps: - name: build image: node:14 commands: - - npm install - npm run build:prod environment: VUE_APP_API_BASE_URL: from_secret: baseurl - - name: scp files + - name: scpFiles image: appleboy/drone-scp settings: host: amine-louveau.fr @@ -99,7 +87,7 @@ steps: host: amine-louveau.fr user: ubuntu key: - from_secret: ssh_key + from_secret: privateKey command_timeout: 2m script: - cd /home/ubuntu/courses