From 48735fd1809c49703349ee509ac9599803a9dd67 Mon Sep 17 00:00:00 2001 From: Stefan H Date: Sun, 5 Feb 2023 22:00:01 +0100 Subject: [PATCH] DroneCI Config --- .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..09b8ad8 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,36 @@ +--- + +kind: pipeline +type: docker +name: default +trigger: +branch: +- master + +steps: + +- name: Version check +image: klakegg/hugo:ext-alpine-ci +commands: + - echo "Checking Hugo version." + - hugo version + - hugo mod graph +- name: Submodules +image: alpine/git +commands: + - git submodule update --init --recursive +- name: Build +image: klakegg/hugo:ext-alpine-ci +commands: + - hugo --destination /drone/src/build +- name: Upload +image: drillster/drone-rsync +commands: + - eval `ssh-agent -s` + - echo "$SSH\_KEY" | ssh-add - + - mkdir -p ~/.ssh + - echo -e "Host \*\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config + - rsync -rv -e "ssh -p 22" /drone/src/build/ drone@server4.unhb.de:/tmp/test --checksum + environment: + SSH\_KEY: + from\_secret: drone\_ssh\_key