docs: add guide for CI/CD template testing (#15528)

Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com>
This commit is contained in:
Muhammad Atif Ali
2024-11-20 23:58:51 +05:00
committed by GitHub
co-authored by Edward Angert
parent a518017a88
commit dcbcf6740c
3 changed files with 130 additions and 2 deletions
@@ -62,8 +62,9 @@ For an example, see how we push our development image and template
## Coder CLI
You can also [install Coder](../../../install/cli.md) to automate pushing new
template versions in CI/CD pipelines.
You can [install Coder](../../../install/cli.md) CLI to automate pushing new
template versions in CI/CD pipelines. For GitHub Actions, see our
[setup-coder](https://github.com/coder/setup-coder) action.
```console
# Install the Coder CLI
@@ -88,6 +89,11 @@ coder templates push --yes $CODER_TEMPLATE_NAME \
--name=$CODER_TEMPLATE_VERSION # Version name is optional
```
## Testing and Publishing Coder Templates in CI/CD
See our [testing templates](../../../tutorials/testing-templates.md) tutorial
for an example of how to test and publish Coder templates in a CI/CD pipeline.
### Next steps
- [Coder CLI Reference](../../../reference/cli/templates.md)