Deployment mit Drone #128

Merged
muli merged 5 commits from drone_deployment into main 2022-09-07 20:07:07 +02:00
Showing only changes of commit 7fa0f596ad - Show all commits

View File

@ -12,15 +12,59 @@ trigger:
steps: steps:
- name: build - name: build
image: python:3.10-bullseye image: python:3.10-alpine
commands: commands:
- apk add imagemagick
- python3 -m pip install --user pipx - python3 -m pip install --user pipx
- export PATH=/root/.local/bin:$PATH - export PATH=/root/.local/bin:$PATH
- pipx install lektor - pipx install lektor
- lektor build - 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
- 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
--- ---
kind: signature kind: signature
hmac: aa654e71bb04571a3861f7b05550caea1b75b162d8c2710f1498a36dc5c2b8da hmac: 8ddcd8d284e6a0e19b9ef6456c9fe12ebaacaa1d639f1008b5a4527a4026d1b0
... ...