ci: Add deploy step
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Glenn Y. Rolland 2023-02-21 12:53:24 +01:00
parent 941d5d2da5
commit 73d103f562

View file

@ -65,6 +65,19 @@ steps:
branch:
- master
- name: deploy:dokku
image: alpine
environment:
SSH_USER:
from_secret: SSH_USER
SSH_HOST:
from_secret: SSH_HOST
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY
commands:
- 'echo "${SSH_PRIVATE_KEY}" > ~/.ssh/deploy_key'
- 'ssh -i ~/.ssh/deploy_key ${SSH_USER}@${SSH_HOST} ls -l /'
# volumes:
# - name: cache
# temp: {}