From 0b4afec5ec2f26812094a1c39c18cc5382fedc60 Mon Sep 17 00:00:00 2001 From: kleph Date: Tue, 27 Oct 2020 16:26:24 +0100 Subject: [PATCH] [ci] Build content in CI --- .drone.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/.drone.yml b/.drone.yml index b7526c5..ccf8a3b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,3 +12,49 @@ steps: image: pipelinecomponents/markdownlint:latest commands: - mdl . + +- name: pbuild pelican + image: apihackers/pelican + commands: + - pelican content -o output -s pelicanconf.py + + #- name: deploy staging + # image: kroniak/ssh-client + # environment: + # DEPLOY_USER: + # from_secret: deploy_user + # DEPLOY_HOST: + # from_secret: deploy_host + # DEPLOY_KEY: + # from_secret: deploy_key + # commands: + # - 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/ + # when: + # branch: + # exclude: + # - master + # + #- name: deploy staging + # image: kroniak/ssh-client + # environment: + # DEPLOY_USER: + # from_secret: deploy_user + # DEPLOY_HOST: + # from_secret: deploy_host + # DEPLOY_KEY: + # from_secret: deploy_key + # commands: + # - echo "deploy $DEPLOY_USER@$DEPLOY_HOST" + # - echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key + # - chmod 0600 deploy_key + # - cat deploy_key + # - scp -i deploy_key -o StrictHostKeyChecking=no output/* $DEPLOY_USER@$DEPLOY_HOST:/srv/http/blog/output/ + # when: + # branch: + # include: + # - master