Add promotion steps for dev and live

This commit is contained in:
Brain 2022-08-25 15:10:29 +02:00 committed by Gitea
parent 48150b5677
commit 7fa0f596ad
1 changed files with 46 additions and 2 deletions

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