2021-06-06 15:25:09 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-10-25 16:54:45 +02:00
|
|
|
name: build
|
2021-08-18 15:41:14 +02:00
|
|
|
|
|
|
|
trigger:
|
2022-10-25 16:54:45 +02:00
|
|
|
branch:
|
2021-08-18 15:41:14 +02:00
|
|
|
- main
|
2022-10-25 16:54:45 +02:00
|
|
|
- spielwiese
|
|
|
|
event:
|
2021-08-18 15:41:14 +02:00
|
|
|
- push
|
2022-10-25 16:54:45 +02:00
|
|
|
- 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
|
2023-05-02 18:35:35 +02:00
|
|
|
- pipx install lektor==3.3.8
|
2022-10-25 16:54:45 +02:00
|
|
|
- lektor build
|
2021-08-18 15:41:14 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-10-25 16:54:45 +02:00
|
|
|
name: deploy
|
2021-08-18 15:41:14 +02:00
|
|
|
|
2022-10-25 16:54:45 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
2021-08-18 15:41:14 +02:00
|
|
|
|
|
|
|
steps:
|
2022-10-25 16:54:45 +02:00
|
|
|
- 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
|
2023-05-02 18:35:35 +02:00
|
|
|
- pipx install lektor==3.3.8
|
2022-10-25 16:54:45 +02:00
|
|
|
- lektor build
|
|
|
|
- apk add rsync openssh
|
|
|
|
- mkdir ~/.ssh
|
|
|
|
- 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
|
2023-05-02 18:35:35 +02:00
|
|
|
- pipx install lektor==3.3.8
|
2022-10-25 16:54:45 +02:00
|
|
|
- lektor build
|
|
|
|
- apk add rsync openssh
|
|
|
|
- mkdir ~/.ssh
|
|
|
|
- echo "www.wtf-eg.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICBp7eSOC07exvXuY4XhpZOuXax+zyzoymSVD4/+D/P6" >> ~/.ssh/known_hosts
|
|
|
|
- lektor deploy dev
|
|
|
|
when:
|
|
|
|
target:
|
|
|
|
- spielwiese
|
2021-08-18 15:41:14 +02:00
|
|
|
|
2022-07-12 14:48:02 +02:00
|
|
|
---
|
|
|
|
kind: signature
|
2023-05-02 18:35:35 +02:00
|
|
|
hmac: a04843afc36b75a13b62544539985bbf077d27f55d482737a3a20b33163d4eb9
|
2022-07-12 14:48:02 +02:00
|
|
|
|
|
|
|
...
|