webseite/.drone.yml

71 lines
1.3 KiB
YAML
Raw Normal View History

2021-06-06 15:25:09 +02:00
---
kind: pipeline
type: docker
2022-08-24 23:05:00 +02:00
name: build
trigger:
2022-08-24 23:05:00 +02:00
branch:
- main
2022-08-24 23:05:00 +02:00
event:
- push
2022-08-24 23:05:00 +02:00
- pull_request
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
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
- 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
2022-07-12 14:48:02 +02:00
---
kind: signature
2022-08-25 15:10:29 +02:00
hmac: 8ddcd8d284e6a0e19b9ef6456c9fe12ebaacaa1d639f1008b5a4527a4026d1b0
2022-07-12 14:48:02 +02:00
...