Skip to content

Commit

Permalink
Merge pull request #411 from Qovery/chore/updates_20242404
Browse files Browse the repository at this point in the history
Add remote caches + auto-deploy CLI
  • Loading branch information
jul-dan authored Apr 24, 2024
2 parents 5884ac2 + 396d7a5 commit 8af7695
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 3 additions & 1 deletion website/docs/using-qovery/deployment/image-mirroring.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
last_modified_on: "2023-10-27"
last_modified_on: "2024-04-24"
title: "Image Mirroring"
description: "Learn how images are mirrored within your cloud account"
---
Expand Down Expand Up @@ -41,6 +41,8 @@ Otherwise, the image is built by the Qovery pipeline the resulting image is push
<img src="/img/deployment/build-mirror.png" alt="Mirroring built image" />
</p>

In order to speed up the image build, we are using remote caches (available in AWS, GCP and Scaleway). It will avoid building the image from scratch, only the layers that changed will be built.

Given this isolation mechanism, if the same application is cloned (via the [clone][docs.using-qovery.configuration.environment#clone-environment] or [preview environment][docs.using-qovery.configuration.environment#preview-environment] feature), Qovery will re-build the application since the environment variables have changed (the ones at environment level).

## Application deployed from a container registry
Expand Down
2 changes: 2 additions & 0 deletions website/docs/using-qovery/deployment/image-mirroring.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Otherwise, the image is built by the Qovery pipeline the resulting image is push
<img src="/img/deployment/build-mirror.png" alt="Mirroring built image" />
</p>

In order to speed up the image build, we are using remote caches (available in AWS, GCP and Scaleway). It will avoid building the image from scratch, only the layers that changed will be built.

Given this isolation mechanism, if the same application is cloned (via the [clone][docs.using-qovery.configuration.environment#clone-environment] or [preview environment][docs.using-qovery.configuration.environment#preview-environment] feature), Qovery will re-build the application since the environment variables have changed (the ones at environment level).

## Application deployed from a container registry
Expand Down
9 changes: 8 additions & 1 deletion website/docs/using-qovery/interface/cli.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
last_modified_on: "2024-01-31"
last_modified_on: "2024-04-24"
title: CLI
description: How to use the Qovery CLI (Command Line Interface)
---
Expand Down Expand Up @@ -552,6 +552,7 @@ These commands allow you to manage all these services via the CLI. You can run t
- list: List the service of the specified type
- redeploy: Redeploy a service (already deployed before)
- stop: Stop a service
- update: Update a service (service name, git branch, auto-deploy, ...)

Each action allows you to specify additional parameters to define the service you want to modify (you can find them via the --help command)

Expand All @@ -571,6 +572,12 @@ backend | Application | RUNNING | 2023-02-13 12:59:23.228231 +0000 UTC
front-end | Application | STOPPED | 2023-02-09 14:04:38.079792 +0000 UTC
```

Example: Enable the auto-deploy feature for an application
```bash
$ qovery application update --application backend --auto-deploy true
Application backend updated!
```

### Environment
The command `environment` allow you to manage a specific environment via the CLI. You can run the following actions on environments:
- cancel: Cancel an environment deployment
Expand Down
7 changes: 7 additions & 0 deletions website/docs/using-qovery/interface/cli.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ These commands allow you to manage all these services via the CLI. You can run t
- list: List the service of the specified type
- redeploy: Redeploy a service (already deployed before)
- stop: Stop a service
- update: Update a service (service name, git branch, auto-deploy, ...)

Each action allows you to specify additional parameters to define the service you want to modify (you can find them via the --help command)

Expand All @@ -394,6 +395,12 @@ backend | Application | RUNNING | 2023-02-13 12:59:23.228231 +0000 UTC
front-end | Application | STOPPED | 2023-02-09 14:04:38.079792 +0000 UTC
```

Example: Enable the auto-deploy feature for an application
```bash
$ qovery application update --application backend --auto-deploy true
Application backend updated!
```

### Environment
The command `environment` allow you to manage a specific environment via the CLI. You can run the following actions on environments:
- cancel: Cancel an environment deployment
Expand Down

0 comments on commit 8af7695

Please sign in to comment.