Skip to main content
Qovery can automatically update the services that deploy from a Git repository (applications, jobs, Helm charts, Terraform services, and containers built from Git) to the latest version of their Git branch. Each time a commit is done on your Git repository, Qovery will receive a webhook call with the commit information and will determine which services should be automatically re-deployed. With auto-deploy on, anyone who can push to the branch can deploy the service.

Activation

You can activate the auto-deploy flag either within the application settings or during the service creation flow.Auto-Deploy SettingsAuto-Deploy Creation FlowThe Console does not offer auto-deploy for containers built from Git yet: use the API or Terraform.

Check it worked

Read the application with GET /application/{applicationId}:
The response contains "auto_deploy": true. Push a commit to the application branch, then run qovery environment deployment list --environment "<environmentName>": a new deployment for that commit appears in the list. Once activated, each commit on the application branch will automatically trigger the deployment of the new version of your application.

Webhook Warnings

When you save the settings of an application, job, Helm chart, or Terraform service, the Console displays a warning if the auto-deploy webhook could not be set up. The settings are saved, but pushes to the repository will not trigger deployments until the issue is fixed.

Filtering Commits

The “Deployment restrictions” feature allows you to better control which commits should trigger a new deployment and which should not. It applies to every service that deploys from a Git repository: applications, jobs, Helm charts, Terraform services, and containers built from Git. Deployment Restrictions There are two modes:
  • EXCLUDE: the deployment will be triggered for all commits EXCEPT the one that have changed ONLY the specified files/folders
  • MATCH: the deployment will be triggered ONLY if the commit has changed the specified files/folders. If multiple MATCH conditions exist, only one of them has to be true to trigger the deployment.
Important notes:
  • The value must be the complete path of the file/folder to be excluded/matched
  • The path must NOT start with a forward slash /
  • Wildcards (*) are not supported
  • You can use path prefixes for partial matching (e.g., docs/ will match any file within the docs folder)
To add a restriction without the Console, call POST /service/{serviceId}/deploymentRestriction, shared by all these services. mode, type (only PATH) and value are required:
GET /service/{serviceId}/deploymentRestriction lists the restrictions of the service. PUT and DELETE /service/{serviceId}/deploymentRestriction/{deploymentRestrictionId} edit and delete one. The per-kind endpoints (/application/{applicationId}/deploymentRestriction, /job/{jobId}/deploymentRestriction, /helm/{helmId}/deploymentRestriction and /terraform/{terraformId}/deploymentRestriction) are deprecated but keep working. A container’s restrictions take effect only while it builds from a Git repository, and the Console does not show them yet: use the API or Terraform. With Terraform, use the deployment_restrictions attribute of qovery_application, qovery_job, qovery_helm or qovery_container, with the same mode, type and value fields. qovery_container accepts it from provider 1.11.0, on a container built from Git: remove the attribute before switching the container to a registry image.
From provider 1.11.0, leaving deployment_restrictions out of a qovery_application, qovery_job, qovery_helm or qovery_container deletes the restrictions Qovery holds for the service, those set in the Console included. To keep restrictions managed in the Console, add lifecycle { ignore_changes = [deployment_restrictions] } to the resource.

Container Image Auto-Deploy

A container built from a Git repository deploys on push like an application once its auto_deploy is true: see Activation. The rest of this section is for containers that run an image from a registry. For container images (not Git repositories), you need to configure your CI/CD pipeline to notify Qovery when a new image tag is available. This can be done through:
  • The Qovery API using the autoDeployContainerEnvironments endpoint for containers
  • The Qovery API using the autoDeployJobEnvironments endpoint for lifecycle jobs and cronjobs
See the API documentation for more details. For example, after your CI pushes a new tag, deploy it to every environment with auto-deploy turned on that runs a container with the same image name:

FAQ

Yes, you can use the “Deployment restrictions” feature with EXCLUDE mode to specify files or folders that should not trigger deployments when they are the only changes in a commit.
No, auto-deploy will not restart a stopped service. The service must be running for auto-deploy to trigger a deployment.
Yes, mono-repositories are fully supported. You can have multiple services connected to the same Git repository. Use the “Deployment restrictions” feature with MATCH mode to limit auto-deploy triggers to specific subfolders for each service.
No, Qovery does not automatically monitor container registries. You must notify Qovery when a new image tag is available through:
  • The Qovery Console
  • The Qovery CLI using qovery container deploy -n "<container-name>" --tag "<tag-name>" (or qovery cronjob deploy and qovery lifecycle deploy with --tag for jobs)
  • The Qovery API endpoints (autoDeployContainerEnvironments or autoDeployJobEnvironments)

Next Steps

CI/CD Integration

Deploy with external CI/CD pipelines

Deployment Actions

Control your deployments

Deployment History

Review deployment history

Deployment Logs

Access deployment logs