webseite/.drone.yml

76 lines
1.6 KiB
YAML
Raw Normal View History

2021-06-06 15:25:09 +02:00
---
kind: pipeline
type: docker
name: build
trigger:
branch:
- main
- spielwiese
event:
- push
- pull_request
steps:
- name: build
image: python:3.10-alpine
commands:
- apk add imagemagick
2023-05-02 22:37:07 +02:00
- python3 -m venv venv
- . venv/bin/activate
- pip install -r requirements.txt
- 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
2023-05-02 22:37:07 +02:00
- python3 -m venv venv
- . venv/bin/activate
- pip install -r requirements.txt
- 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
2023-05-02 22:37:07 +02:00
- python3 -m venv venv
- . venv/bin/activate
- pip install -r requirements.txt
- 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
2022-07-12 14:48:02 +02:00
---
kind: signature
2023-05-02 22:37:07 +02:00
hmac: 1634ef6329d6399a622c569b06bf084859854e34958585f2a83bd2f0b1bb47ca
2022-07-12 14:48:02 +02:00
...