wtf-webseite/.drone.yml

71 lines
1.3 KiB
YAML

---
kind: pipeline
type: docker
name: build
trigger:
branch:
- main
event:
- push
- pull_request
steps:
- name: build
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: 8ddcd8d284e6a0e19b9ef6456c9fe12ebaacaa1d639f1008b5a4527a4026d1b0
...