From 67f5773dccffcd0c4672b55916b44a8cf4259784 Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Fri, 7 Jul 2023 11:02:46 +0200 Subject: [PATCH] enable drone builds --- .drone.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..da8107e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,55 @@ +name: test +kind: pipeline +type: docker + +platform: + os: linux + arch: amd64 + +steps: +- name: clone submodules + image: alpine/git:2.40.1 + commands: + - git submodule update --init --recursive +- name: build + image: klakegg/hugo:0.111.3-ext-alpine-ci + +trigger: + event: + - push + - pull_request + +--- +name: deploy to production +kind: pipeline +type: docker + +platform: + os: linux + arch: amd64 + +steps: +- name: clone submodules + image: alpine/git:2.40.1 + commands: + - git submodule update --init --recursive +- name: build + image: klakegg/hugo:0.111.3-ext-alpine-ci +- name: deploy to production + image: appleboy/drone-scp + settings: + host: helene.nick-slowinski.de + username: drone_nick-slowinski_de-www + key: + from_secret: ssh_private_key-drone_nick-slowinski_de-www + target: /var/www/nick-slowinski.de/www + source: /drone/src/public + rm: true + overwrite: true + strip_components: 3 + +trigger: + event: + - promote + target: + - production \ No newline at end of file