Skip to content

Commit

Permalink
Merge pull request #3664 from uselagoon/docs/updates_promote_document…
Browse files Browse the repository at this point in the history
…ation

Documentation: Updates promote documentation to use lagoon-cli
  • Loading branch information
tobybellwood authored Mar 7, 2024
2 parents 5281074 + 437811b commit 66061c7
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions docs/concepts-advanced/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,13 @@ In our example, we want to promote the Docker images from the `main` environment

* First, we need a regular deployed environment with the name `main`. Make sure that the environment has deployed successfully.
* Also, make sure that you don't have a branch called `production` in your Git repository. This could lead to weird confusions \(like people pushing into this branch, etc\).
* Now trigger a promotion deployment via this `curl` request:

```bash title="Trigger a promotion deployment"
curl -X POST \
https://rest.lagoon.amazeeio.cloud/promote \
-H 'Content-Type: application/json' \
-d '{
"projectName":"myproject",
"sourceEnvironmentName": "main",
"branchName": "production"
}'
* Now trigger a promotion deployment using the [lagoon cli](https://github.com/uselagoon/lagoon-cli):

```title="Trigger a promotion deployment"
lagoon deploy promote --project="myproject" --source="main" --destination="production"
```

This tells Lagoon that you want to promote from the source `main` to the destination `production` \(yes, it really uses `branchName` as destination, which is a bit unfortunate, but it will be fixed soon\).
This tells Lagoon that you want to promote from the source `main` to the destination `production`.

Lagoon will now do the following:

Expand Down

0 comments on commit 66061c7

Please sign in to comment.