From 5141867f1894754379f464d683175d7b504f25d2 Mon Sep 17 00:00:00 2001 From: kleph Date: Tue, 27 Oct 2020 17:09:24 +0100 Subject: [PATCH 1/2] [ci] Fix typo --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ffe9ccc..ff1ce3f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: commands: - mdl . -- name: pbuild pelican +- name: build pelican image: apihackers/pelican commands: - pelican content -o output -s pelicanconf.py -- 2.45.2 From 7728c2a005eca1281abca40802d475e2023d76d0 Mon Sep 17 00:00:00 2001 From: kleph Date: Tue, 27 Oct 2020 17:23:08 +0100 Subject: [PATCH 2/2] [CI] Remove debug and fix deploy command --- .drone.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index ff1ce3f..d9e8eda 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,6 @@ steps: image: apihackers/pelican commands: - pelican content -o output -s pelicanconf.py - - ls output - name: deploy staging image: kroniak/ssh-client @@ -27,9 +26,8 @@ steps: - echo "deploy $DEPLOY_USER@$DEPLOY_HOST" - echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key - chmod 0600 deploy_key - - cat deploy_key - ssh -i deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST rm -Rf /srv/http/blog-lan/output/ - - scp -i deploy_key -o StrictHostKeyChecking=no output/* $DEPLOY_USER@$DEPLOY_HOST:/srv/http/blog-lan/output/ + - scp -r -i deploy_key -o StrictHostKeyChecking=no output $DEPLOY_USER@$DEPLOY_HOST:/srv/http/blog-lan/ when: branch: exclude: -- 2.45.2