diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b61011ce..e90e3692 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,7 +40,7 @@ jobs: github.ref == 'refs/heads/dev' && github.repository == 'MariaDB/buildbot' run: | - ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.USER }}@${{ secrets.SERVER_IP }} "docker-compose -f /srv/dev/docker-compose/docker-compose.yaml down" + ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.USER }}@${{ secrets.SERVER_IP }} "[[ -f /srv/dev/docker-compose/docker-compose.yaml ]] && docker-compose -f /srv/dev/docker-compose/docker-compose.yaml down" - name: deploy if: > github.ref == 'refs/heads/dev' &&