move ssh key environment vars into the configure step
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
0eb000c3a9
commit
c42e819e75
1 changed files with 5 additions and 4 deletions
|
@ -7,18 +7,19 @@ environment:
|
||||||
DOKKU_HOST: apps1.fnukinternal.net
|
DOKKU_HOST: apps1.fnukinternal.net
|
||||||
DOKKU_APP_NAME: dokku-ci-deploy
|
DOKKU_APP_NAME: dokku-ci-deploy
|
||||||
DOKKU_USER: dokku
|
DOKKU_USER: dokku
|
||||||
SSH_PRIVATE_KEY:
|
|
||||||
from_secret: dokku_ssh_key
|
|
||||||
JUMP_HOST: 192.168.0.24
|
JUMP_HOST: 192.168.0.24
|
||||||
JUMP_USER: jumpuser
|
JUMP_USER: jumpuser
|
||||||
JUMP_PRIVATE_KEY:
|
|
||||||
from_secret: dokku_ssh_key
|
|
||||||
|
|
||||||
image: ubuntu:latest
|
image: ubuntu:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: configure-environment
|
- name: configure-environment
|
||||||
pull: always
|
pull: always
|
||||||
|
environment:
|
||||||
|
SSH_PRIVATE_KEY:
|
||||||
|
from_secret: dokku_ssh_key
|
||||||
|
JUMP_PRIVATE_KEY:
|
||||||
|
from_secret: dokku_ssh_key
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo -e "Host jump\n Hostname $JUMP_HOST\n User $JUMP_USER\n IdentityFile ~/.ssh/id_rsa\n StrictHostKeyChecking no" > ~/.ssh/config
|
- echo -e "Host jump\n Hostname $JUMP_HOST\n User $JUMP_USER\n IdentityFile ~/.ssh/id_rsa\n StrictHostKeyChecking no" > ~/.ssh/config
|
||||||
|
|
Loading…
Reference in a new issue