move ssh key environment vars into the configure step
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Dovi Cowan 2023-02-21 01:41:31 +00:00
parent 0eb000c3a9
commit c42e819e75
Signed by: dcowan
GPG key ID: C110D77558FBC227

View file

@ -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