Skip to content
Snippets Groups Projects
Commit be1b1b71 authored by Mayra Cabrera's avatar Mayra Cabrera :zero:
Browse files

Update single environment handbook

parent f6ad1480
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !438. Comments created here will be created in the context of that merge request.
......@@ -91,6 +91,7 @@ general process overview and specific documentation for different stakeholders.
- [Running QA for Backports](runbooks/backport-qa-testing.md)
- [How to deploy risky MRs in isolation](general/deploy/deploying-risky-mrs-in-isolation.md)
- [How to speed the auto-deploy process for urgent merge requests?](runbooks/how_to_speed_auto_deploy_process_for_urgent_merge_requests.md)
- [How to deploy to a single environment?](runbooks/how_to_deploy_to_a_single_environment?)
## Glossary
- [Deployment related terminology](general/deploy/glossary.md)
......
# Deploying to a single environment
# How to deploy to a single environment?
This runbook aims to cover the use cases where our auto-deploy pipelines are
not functioning correctly, or there is a need to deploy to environments out of
order, and thus you need to manually deploy a specific release to an environment.
This runbook aims to cover the use cases where our coordinated pipelines pipelines
are not functioning correctly, and thus you need to manually deploy a specific release to an environment.
## Pre-deploy considerations
* When deploying to a canary environment, make sure canary is unddrained so
that QA tests are accurately using the canary stage
* Identify the full package version you wish to deploy using XXX
* Packages on `gstg` and `gprd` should be kept in sync, if you need to manually deploy
to one of these environments, it'd be required to also deploy to other one as well.
* When deploying to a canary environment, make sure [canary is undrained] so
that QA tests are accurately using the canary stage.
## Deploying to a single environment
* Use chatops to deploy to a single environment
```
# Staging deploy
/chatops run deploy 14.X.XXX
# Staging canary deploy
/chatops run deploy --canary 14.X.XXX
# Production deploy
/chatops run deploy --production 14.X.XXX
# Production canary deploy
/chatops run deploy --production --canary 14.X.XXX
```
1. Identify the auto-deploy package version you wish to deploy. You can grab the package
from the `#announcements` channel.
2. Use chatops to deploy to a single environment
## Post-deploy considerations
| Environment | ChatOps command |
| --- | --- |
| staging | `/chatops run deploy 14.9.202203101220-571badda7c4.4e8301d17e3` |
| staging-canary | `/chatops run deploy --canary 14.9.202203101220-571badda7c4.4e8301d17e3` |
| production | `/chatops run deploy --production 4.9.202203101220-571badda7c4.4e8301d17e3` |
| canary-production | `/chatops run deploy --production --canary 4.9.202203101220-571badda7c4.4e8301d17e3` |
* If you are deploying to `gstg` or `gprd`, consider the fact that the pipeline
order expects that these environments are kept very close in sync. If you manually
deploy to a single environment, you should highly consider manually deploying
to the other one as well
[canary is undrained]: https://about.gitlab.com/handbook/engineering/infrastructure/environments/canary-stage/#re-enabling-canary-stage-in-an-environment
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment