Add promotion steps for dev and live
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Brain 2022-08-25 15:10:29 +02:00
parent c1563c6efe
commit f7369f61aa
Signed by: Brain
GPG Key ID: 9CF47083EE57670D

View File

@ -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
...