mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
docs: add guide for CI/CD template testing (#15528)
Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com>
This commit is contained in:
co-authored by
Edward Angert
parent
a518017a88
commit
dcbcf6740c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user