2021-04-25 12:06:14 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build_webseite
|
|
|
|
|
2021-04-25 12:23:13 +02:00
|
|
|
workspace:
|
|
|
|
path: /workspace
|
|
|
|
|
2021-04-25 12:06:14 +02:00
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: registry.wtf-eg.net/lektor
|
2021-06-06 23:01:58 +02:00
|
|
|
- name: deploy
|
|
|
|
image: registry.wtf-eg.net/lektor
|
|
|
|
environment:
|
|
|
|
LEKTOR_DEPLOY_KEY:
|
|
|
|
from_secret: lektor_deploy_key
|
|
|
|
commands:
|
2021-06-06 23:07:52 +02:00
|
|
|
- lektor deploy --key ${LEKTOR_DEPLOY_KEY}
|
2021-06-06 23:01:58 +02:00
|
|
|
when:
|
|
|
|
branch:
|
2021-06-06 23:04:53 +02:00
|
|
|
- main
|
2021-06-06 23:01:58 +02:00
|
|
|
event:
|
|
|
|
- push
|
2021-04-25 12:23:13 +02:00
|
|
|
|
|
|
|
image_pull_secrets:
|
2021-06-06 23:01:58 +02:00
|
|
|
- dockerconfig
|