test ssh
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dovi Cowan 2023-02-21 02:19:10 +00:00
parent bf0bb6579d
commit babf1f74f5
Signed by: dcowan
GPG key ID: C110D77558FBC227

View file

@ -41,13 +41,6 @@ steps:
- chmod 400 ~/.ssh/config.dokku - chmod 400 ~/.ssh/config.dokku
- echo "$JUMP_PRIVATE_KEY" > ~/.ssh/id_rsa - echo "$JUMP_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- name: test-dump-sshconfig
image: ubuntu:latest
volumes:
- name: ssh
path: /root/.ssh
commands:
- cat ~/.ssh/config
- name: add-remote - name: add-remote
image: bitnami/git:2.39.2 image: bitnami/git:2.39.2
volumes: volumes:
@ -55,13 +48,14 @@ steps:
path: /root/.ssh path: /root/.ssh
commands: commands:
- git remote add dokku dokku:$DOKKU_APP_NAME - git remote add dokku dokku:$DOKKU_APP_NAME
- ssh jump "echo 'Hello world'"
- ssh dokku "echo 'Hello world'"
- name: push-to-dokku - name: push-to-dokku
image: bitnami/git:2.39.2 image: bitnami/git:2.39.2
volumes: volumes:
- name: ssh - name: ssh
path: /root/.ssh path: /root/.ssh
commands: commands:
- ls -la ~/.ssh
- git push dokku $BRANCH - git push dokku $BRANCH
trigger: trigger: