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
|
||||
path: /root/.ssh
|
||||
commands:
|
||||
- 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
|
||||
- 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
|
||||
- name: push-to-dokku
|
||||
image: bitnami/git:2.39.2
|
||||
volumes:
|
||||
|
|
Loading…
Reference in a new issue