This commit is contained in:
parent
b540c6696b
commit
8be9ac5ab3
1 changed files with 10 additions and 2 deletions
12
.drone.yml
12
.drone.yml
|
@ -48,8 +48,16 @@ steps:
|
|||
path: /root/.ssh
|
||||
commands:
|
||||
- git remote add dokku dokku:$DOKKU_APP_NAME
|
||||
- ssh jump "echo 'Hello world'"
|
||||
- ssh dokku "echo 'Hello world'"
|
||||
- ssh jump "echo 'Host key added'"
|
||||
- ssh dokku "echo 'Host key added'"
|
||||
- name: create-app
|
||||
image: ubuntu
|
||||
volumes:
|
||||
- name: ssh
|
||||
path: /root/.ssh
|
||||
commands:
|
||||
- ssh dokku apps:exists $DOKKU_APP_NAME
|
||||
- if [ $? -eq 0 ]; then ssh dokku apps:create $DOKKU_APP_NAME; else echo "App already exists"; fi
|
||||
- name: push-to-dokku
|
||||
image: bitnami/git:2.39.2
|
||||
volumes:
|
||||
|
|
Loading…
Reference in a new issue