From 0eb000c3a9884bfddf104da05990beb76dba2b53 Mon Sep 17 00:00:00 2001 From: Dovi Cowan Date: Tue, 21 Feb 2023 01:32:36 +0000 Subject: [PATCH] fix ssh key location --- .drone.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 312f5cc..32334ed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,11 +8,11 @@ environment: DOKKU_APP_NAME: dokku-ci-deploy DOKKU_USER: dokku SSH_PRIVATE_KEY: - - from_secret: dokku_ssh_key + from_secret: dokku_ssh_key JUMP_HOST: 192.168.0.24 JUMP_USER: jumpuser JUMP_PRIVATE_KEY: - - from_secret: dokku_ssh_key + from_secret: dokku_ssh_key image: ubuntu:latest @@ -24,12 +24,12 @@ steps: - 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 dokku\n Hostname $DOKKU_HOST\n User $DOKKU_USER\n IdentityFile ~/.ssh/id_rsa\n ProxyCommand ssh -o 'StrictHostKeyChecking no' jump nc %h %p" >> ~/.ssh/config - chmod 400 ~/.ssh/config - - echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config.jump + - echo -e "Host *\n StrictHostKeyCheAlso note the environment section cannot expand environment variables or evaluate shell expressions. If you need to construct variables it should be done in the commands section.cking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config.jump - echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config.dokku - chmod 400 ~/.ssh/config.jump - chmod 400 ~/.ssh/config.dokku - - echo "$JUMP_PRIVATE_KEY" > ~/.ssh/id_rsa_jump - - chmod 600 ~/.ssh/id_rsa_jump + - echo "$JUMP_PRIVATE_KEY" > ~/.ssh/id_rsa + - chmod 600 ~/.ssh/id_rsa - name: add-remote commands: - git remote add dokku dokku:$DOKKU_APP_NAME