build and deploy in separate steps, but cd to /workspace befor deploy
continuous-integration/drone/push Build is passing Details

This commit is contained in:
hbr 2021-06-07 01:10:21 +02:00
parent 61f0943f31
commit c5cf47b0b6
1 changed files with 4 additions and 2 deletions

View File

@ -7,13 +7,15 @@ workspace:
path: /workspace
steps:
- name: build-deploy
- 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:
- lektor build
- cd /workspace
- lektor deploy --key $LEKTOR_DEPLOY_KEY
when:
branch: