webseite/.drone.yml
Henning Brinkmann c5cf47b0b6
All checks were successful
continuous-integration/drone/push Build is passing
build and deploy in separate steps, but cd to /workspace befor deploy
2021-06-07 01:10:21 +02:00

28 lines
470 B
YAML

---
kind: pipeline
type: docker
name: build_webseite
workspace:
path: /workspace
steps:
- name: build
image: registry.wtf-eg.net/lektor
- name: deploy
image: registry.wtf-eg.net/lektor
environment:
LEKTOR_DEPLOY_KEY:
from_secret: lektor_deploy_key
commands:
- cd /workspace
- lektor deploy --key $LEKTOR_DEPLOY_KEY
when:
branch:
- main
event:
- push
image_pull_secrets:
- dockerconfig