Github Actions Qovery CLI Error when using qovery application deploy

ISSUE
Getting a random 400 Bad Request Error on GitHub Actions.

HOW TO REPRODUCE

A snippet of our workflow file

      - name: Qovery Deploy
        run: |
          curl -s https://get.qovery.com | bash
          qovery application deploy \
            --organization ${{ env.QOVERY_ORGANIZATION }} \
            --project ${{ env.QOVERY_PROJECT_NAME }} \
            --environment ${{ env.QOVERY_ENV }} \
            --application ${{ env.QOVERY_APPLICATION_NAME }} \
            --commit-id ${{ github.sha }}
            --watch
        shell: bash

Hi @tawihealth ,

Can you please confirm that there is no space for your Organization, Project, Env, and Application names? Otherwise, you need to surround them with double quotes.

      - name: Qovery Deploy
        run: |
          curl -s https://get.qovery.com | bash
          qovery application deploy \
            --organization "${{ env.QOVERY_ORGANIZATION }}" \
            --project "${{ env.QOVERY_PROJECT_NAME }}" \
            --environment "${{ env.QOVERY_ENV }}" \
            --application "${{ env.QOVERY_APPLICATION_NAME }}" \
            --commit-id ${{ github.sha }}
            --watch
        shell: bash

Our Org name has a space. Do we need to rename it?

Surrounding everything with quotes work.

However the --watch flag does not work…

How do we wait till the deployment is complete?

And we now have this error

`❌ Container image [REDACTED] failed to be build: Cannot build Application "[REDACTED]" due to an error with docker: ExitStatusError { exit_status: ExitStatus(unix_wait_status(256)) }`

`💣 Deployment failed`

The last error has been traced down to auth failure on a private package registry. Fixed

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.