build and deploy in separate steps, but cd to /workspace befor deploy
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
61f0943f31
commit
c5cf47b0b6
@ -7,13 +7,15 @@ workspace:
|
|||||||
path: /workspace
|
path: /workspace
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-deploy
|
- name: build
|
||||||
|
image: registry.wtf-eg.net/lektor
|
||||||
|
- name: deploy
|
||||||
image: registry.wtf-eg.net/lektor
|
image: registry.wtf-eg.net/lektor
|
||||||
environment:
|
environment:
|
||||||
LEKTOR_DEPLOY_KEY:
|
LEKTOR_DEPLOY_KEY:
|
||||||
from_secret: lektor_deploy_key
|
from_secret: lektor_deploy_key
|
||||||
commands:
|
commands:
|
||||||
- lektor build
|
- cd /workspace
|
||||||
- lektor deploy --key $LEKTOR_DEPLOY_KEY
|
- lektor deploy --key $LEKTOR_DEPLOY_KEY
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
Loading…
Reference in New Issue
Block a user