move if-then to && in create-app
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c31c5c8f70
commit
d55e59ab90
1 changed files with 1 additions and 2 deletions
|
@ -56,8 +56,7 @@ steps:
|
||||||
- name: ssh
|
- name: ssh
|
||||||
path: /root/.ssh
|
path: /root/.ssh
|
||||||
commands:
|
commands:
|
||||||
- ssh dokku dokku apps:exists $DOKKU_APP_NAME
|
- ssh dokku dokku apps:exists $DOKKU_APP_NAME && if [ $? -eq 0 ]; then ssh dokku dokku apps:create $DOKKU_APP_NAME; else echo "App already exists"; fi
|
||||||
- if [ $? -eq 0 ]; then ssh dokku dokku apps:create $DOKKU_APP_NAME; else echo "App already exists"; fi
|
|
||||||
- name: push-to-dokku
|
- name: push-to-dokku
|
||||||
image: bitnami/git:2.39.2
|
image: bitnami/git:2.39.2
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in a new issue