From b7801d14dce2945529ee17797d4b7acc947d41dd Mon Sep 17 00:00:00 2001 From: Henning Brinkmann Date: Sun, 6 Jun 2021 23:01:58 +0200 Subject: [PATCH] add step "deploy" --- .drone.yml | 14 +++++++++++++- Webseite.lektorproject | 5 +++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7676ccd..09d175b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,18 @@ workspace: steps: - name: build image: registry.wtf-eg.net/lektor + - name: deploy + image: registry.wtf-eg.net/lektor + environment: + LEKTOR_DEPLOY_KEY: + from_secret: lektor_deploy_key + commands: + - deploy --key ${LEKTOR_DEPLOY_KEY} + when: + branch: + - master + event: + - push image_pull_secrets: - - dockerconfig \ No newline at end of file + - dockerconfig diff --git a/Webseite.lektorproject b/Webseite.lektorproject index 80f0360..8235811 100644 --- a/Webseite.lektorproject +++ b/Webseite.lektorproject @@ -1,2 +1,7 @@ [project] name = Webseite + +[servers.production] +target = rsync://root@minecraft.henning-brinkmann.de/root/webseite + +