From 6fbf46a27047dcf206b4d5a19f45271a936d0ca3 Mon Sep 17 00:00:00 2001 From: bbaovanc Date: Wed, 14 Apr 2021 00:55:59 -0500 Subject: [PATCH] Automatically deploy to bbaovanc.com using Drone (#1) Add .drone.yml Co-authored-by: BBaoVanC Reviewed-on: https://git.bbaovanc.com/bbaovanc.com/blog/pulls/1 Co-Authored-By: bbaovanc Co-Committed-By: bbaovanc --- .drone.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b832043 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,36 @@ +--- +kind: pipeline +type: docker +name: Deploy to bbaovanc.com + +trigger: + branch: + - master + event: + exclude: + - pull_request + +steps: + - name: Update submodules + image: alpine/git + commands: + - git submodule update --init --recursive + + - name: Build site + image: mapitman/docker-hugo + commands: + - hugo version + - hugo --minify + + - name: Upload files + image: appleboy/drone-scp + settings: + host: bbaovanc.com + port: 2222 + username: droneci + key: + from_secret: SSH_KEY + target: /var/www/bbaovanc/blog/ + rm: true + source: public/ + strip_components: 1