move if-then to && in create-app
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dovi Cowan 2023-02-21 02:42:09 +00:00
parent c31c5c8f70
commit d55e59ab90
Signed by: dcowan
GPG key ID: C110D77558FBC227

View file

@ -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: