Add promotion steps for dev and live
This commit is contained in:
parent
48150b5677
commit
7fa0f596ad
48
.drone.yml
48
.drone.yml
@ -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
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user