CI/CD Azure pipeline example for deployment automation
In the following deployment automation example, the pipeline sets up a CI/CD environment, installs the ch-cli from the Sitecore feed, verifies it works, and then connects it to a Content Hub instance using stored credentials.
| Code | Description |
|---|---|
CH_CLI_FEED | Pipeline-level variable for the Sitecore NuGet feed URL where ch-cli is published. |
CH_CLI_VERSION | Pipeline-level variable for CLI version. Leave empty to use the latest version or enter a specific version (for example, 1) |
Note
Define CH_ variables shown in the example as variables or secrets within the Azure pipelines themselves. After ch-cli endpoint, use your authenticated instance to execute the commands you need. For additional information about Azure pipelines, see the YAML schema reference.
If you have suggestions for improving this article, let us know!