2021-06-06 15:25:09 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-08-24 23:05:00 +02:00
|
|
|
name: build
|
2021-08-18 15:41:14 +02:00
|
|
|
|
|
|
|
trigger:
|
2022-08-24 23:05:00 +02:00
|
|
|
branch:
|
2021-08-18 15:41:14 +02:00
|
|
|
- main
|
2022-10-25 16:07:37 +02:00
|
|
|
- spielwiese
|
2022-08-24 23:05:00 +02:00
|
|
|
event:
|
2021-08-18 15:41:14 +02:00
|
|
|
- push
|
2022-08-24 23:05:00 +02:00
|
|
|
- pull_request
|
2021-08-18 15:41:14 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2022-08-25 15:10:29 +02:00
|
|
|
image: python:3.10-alpine
|
2022-08-24 23:05:00 +02:00
|
|
|
commands:
|
2022-08-25 15:10:29 +02:00
|
|
|
- apk add imagemagick
|
2022-08-24 23:05:00 +02:00
|
|
|
- python3 -m pip install --user pipx
|
|
|
|
- export PATH=/root/.local/bin:$PATH
|
|
|
|
- pipx install lektor
|
|
|
|
- lektor build
|
2021-08-18 15:41:14 +02:00
|
|
|
|
2022-08-25 15:10:29 +02:00
|
|
|
---
|
|
|
|
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
|
2022-08-25 15:28:39 +02:00
|
|
|
- mkdir ~/.ssh
|
2022-08-25 15:22:48 +02:00
|
|
|
- echo "www.wtf-eg.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICBp7eSOC07exvXuY4XhpZOuXax+zyzoymSVD4/+D/P6" >> ~/.ssh/known_hosts
|
2022-08-25 15:10:29 +02:00
|
|
|
- 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
|
2022-08-25 15:28:39 +02:00
|
|
|
- mkdir ~/.ssh
|
2022-08-25 15:22:48 +02:00
|
|
|
- echo "www.wtf-eg.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICBp7eSOC07exvXuY4XhpZOuXax+zyzoymSVD4/+D/P6" >> ~/.ssh/known_hosts
|
2022-08-25 15:10:29 +02:00
|
|
|
- lektor deploy dev
|
|
|
|
when:
|
|
|
|
target:
|
|
|
|
- spielwiese
|
|
|
|
|
2022-07-12 14:48:02 +02:00
|
|
|
---
|
|
|
|
kind: signature
|
2022-10-25 16:07:37 +02:00
|
|
|
hmac: 0d28bd52da692fb47e34b3fcb103df15005109a7cdaee3ea4a8a76a605660017
|
2022-07-12 14:48:02 +02:00
|
|
|
|
|
|
|
...
|