This commit is contained in:
parent
bf0bb6579d
commit
babf1f74f5
1 changed files with 2 additions and 8 deletions
10
.drone.yml
10
.drone.yml
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue