From e274a5a9921ab9254c815d862afe2546f006719e Mon Sep 17 00:00:00 2001 From: samuel-p Date: Sat, 4 Jul 2020 07:40:30 +0200 Subject: [PATCH 1/4] updated .drone.yml --- .drone.yml | 54 +++++++++++++++++++----------------------------------- 1 file changed, 19 insertions(+), 35 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8c1a32f..574b114 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: build-develop +name: default steps: - name: build @@ -21,40 +21,24 @@ steps: - which lftp || ( apk --update add lftp ) - lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ dev.sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST when: + branch: + - develop event: - push - -trigger: - branch: - - develop - ---- -kind: pipeline -type: docker -name: build-master - -steps: - - name: build - image: node - commands: - - npm install - - npm run build - name: deploy - image: alpine - environment: - FTP_HOST: - from_secret: FTP_HOST - FTP_USERNAME: - from_secret: FTP_USERNAME - FTP_PASSWORD: - from_secret: FTP_PASSWORD - commands: - - which lftp || ( apk --update add lftp ) - - lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST - when: - event: - - push - -trigger: - branch: - - master + image: alpine + environment: + FTP_HOST: + from_secret: FTP_HOST + FTP_USERNAME: + from_secret: FTP_USERNAME + FTP_PASSWORD: + from_secret: FTP_PASSWORD + commands: + - which lftp || ( apk --update add lftp ) + - lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST + when: + branch: + - master + event: + - push From 8ac2d4989b30be12aa8488969a5386aa65c94fe5 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Sat, 4 Jul 2020 07:42:21 +0200 Subject: [PATCH 2/4] fixed .drone.yml --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 574b114..9183530 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: commands: - npm install - npm run build - - name: deploy + - name: deploy-develop image: alpine environment: FTP_HOST: @@ -25,7 +25,7 @@ steps: - develop event: - push - - name: deploy + - name: deploy-master image: alpine environment: FTP_HOST: From 0da4cce6fcab77f66bf31f27880b81ef53c8430d Mon Sep 17 00:00:00 2001 From: samuel-p Date: Sat, 4 Jul 2020 07:45:34 +0200 Subject: [PATCH 3/4] fixed .drone.yml --- .drone.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9183530..fa6241d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,19 +26,19 @@ steps: event: - push - name: deploy-master - image: alpine - environment: - FTP_HOST: - from_secret: FTP_HOST - FTP_USERNAME: - from_secret: FTP_USERNAME - FTP_PASSWORD: - from_secret: FTP_PASSWORD - commands: - - which lftp || ( apk --update add lftp ) - - lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST - when: - branch: - - master - event: - - push + image: alpine + environment: + FTP_HOST: + from_secret: FTP_HOST + FTP_USERNAME: + from_secret: FTP_USERNAME + FTP_PASSWORD: + from_secret: FTP_PASSWORD + commands: + - which lftp || ( apk --update add lftp ) + - lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST + when: + branch: + - master + event: + - push From 1146f2042a83fef3cb8dc9c1469c188d4c486b4e Mon Sep 17 00:00:00 2001 From: samuel-p Date: Sun, 5 Jul 2020 12:19:00 +0200 Subject: [PATCH 4/4] fixed .drone.yml --- .drone.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.drone.yml b/.drone.yml index fa6241d..21e95b0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,10 @@ kind: pipeline type: docker name: default +platform: + os: linux + arch: arm + steps: - name: build image: node