From 7fa0f596adee54daffba0019ecdc98c5608af326 Mon Sep 17 00:00:00 2001 From: Brain Date: Thu, 25 Aug 2022 15:10:29 +0200 Subject: [PATCH] Add promotion steps for dev and live --- .drone.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 118b6586..a4c67687 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,15 +12,59 @@ trigger: steps: - name: build - image: python:3.10-bullseye + image: python:3.10-alpine commands: + - apk add imagemagick - python3 -m pip install --user pipx - export PATH=/root/.local/bin:$PATH - pipx install lektor - lektor build +--- +kind: pipeline +type: docker +name: deploy + +trigger: + event: + - promote + +steps: + - name: deploy-live + image: python:3.10-alpine + environment: + LEKTOR_DEPLOY_KEY: + from_secret: drone_ssh_key + commands: + - apk add imagemagick + - python3 -m pip install --user pipx + - export PATH=/root/.local/bin:$PATH + - pipx install lektor + - lektor build + - apk add rsync openssh + - lektor deploy live + when: + target: + - www + - name: deploy-dev + image: python:3.10-alpine + environment: + LEKTOR_DEPLOY_KEY: + from_secret: drone_ssh_key + commands: + - apk add imagemagick + - python3 -m pip install --user pipx + - export PATH=/root/.local/bin:$PATH + - pipx install lektor + - lektor build + - apk add rsync openssh + - lektor deploy dev + when: + target: + - spielwiese + --- kind: signature -hmac: aa654e71bb04571a3861f7b05550caea1b75b162d8c2710f1498a36dc5c2b8da +hmac: 8ddcd8d284e6a0e19b9ef6456c9fe12ebaacaa1d639f1008b5a4527a4026d1b0 ...