From cf8b6db63df1b56a8ca005c5e0e9dcd7036d24db Mon Sep 17 00:00:00 2001 From: samuel-p Date: Thu, 18 Jun 2020 22:47:14 +0200 Subject: [PATCH] updated .drone.yml --- .drone.yml | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/.drone.yml b/.drone.yml index 97b3a6e..52de0f8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,35 +1,13 @@ kind: pipeline type: docker -name: build +name: build-develop steps: - - name: test - image: alpine - commands: - - pwd - - ls -ashl - name: build image: node commands: - npm install - npm run build - - name: test2 - image: alpine - commands: - - pwd - - ls -ashl - ---- -kind: pipeline -type: docker -name: deploy-develop - -steps: - - name: test - image: alpine - commands: - - pwd - - ls -ashl - name: deploy image: alpine environment: @@ -43,9 +21,6 @@ steps: - which lftp || ( apk --update add lftp ) - lftp -e "mirror -R ./dist/ dev.sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST -depends_on: - - build - trigger: branch: - develop @@ -53,9 +28,14 @@ trigger: --- kind: pipeline type: docker -name: deploy-master +name: build-master steps: + - name: build + image: node + commands: + - npm install + - npm run build - name: deploy image: alpine environment: @@ -69,9 +49,6 @@ steps: - which lftp || ( apk --update add lftp ) - lftp -e "mirror -R ./dist/ sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST -depends_on: - - build - trigger: branch: - master