Prerequisites
Before you can deploy your application with GitLab CI, you need to:- Install the Qovery CLI
- Generate a Qovery API token (via CLI or Console)
- Set the environment variable
QOVERY_CLI_ACCESS_TOKENwith your API token - Disable Qovery Auto Deployment on the services you want to deploy manually
Deploy a Container Application
Here is an example of a GitLab CI configuration file (.gitlab-ci.yml) to deploy a container application:
- A container registry connected to Qovery
- An existing container application on Qovery
- Set the
QOVERY_CLI_ACCESS_TOKENvariable in your GitLab CI/CD settings
Deploy a Single Application
Use the Qovery CLI to deploy a single application:Deploy Multiple Applications
Different Applications with Different Commits
Multiple Applications with the Same Commit (Monorepo)
Manage Preview Environments
Clone an Environment
Update Application Branch in Cloned Environment
Deploy the Preview Environment
Delete Preview Environment
Integration with Terraform
If you’re using Terraform to manage your infrastructure, you can integrate it with your CI/CD pipeline. See the Terraform Provider documentation for more information.Next Steps
Qovery CLI
Learn more about Qovery CLI commands
API Token
Generate and manage API tokens
Auto-Deploy
Configure automatic deployments
GitHub Actions
Deploy with GitHub Actions