webseite/.drone.yml
2022-09-03 17:25:36 +02:00

73 lines
1.6 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
- echo "www.wtf-eg.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICBp7eSOC07exvXuY4XhpZOuXax+zyzoymSVD4/+D/P6" >> ~/.ssh/known_hosts
- 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
- echo "www.wtf-eg.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICBp7eSOC07exvXuY4XhpZOuXax+zyzoymSVD4/+D/P6" >> ~/.ssh/known_hosts
- lektor deploy dev
when:
target:
- spielwiese
---
kind: signature
hmac: 2de977d0e1dd5584f901284e7d71a96bb14e205e9de67724ca631e57d357c17f
...