1
- # Testing and Publishing Coder Templates in CI/CD
1
+ # Test and Publish Coder Templates Through CI/CD
2
2
3
3
<div >
4
4
<a href =" https://github.com/matifali " style =" text-decoration : none ; color : inherit ;" >
@@ -19,28 +19,21 @@ ensures your templates are validated, tested, and promoted seamlessly.
19
19
20
20
## Prerequisites
21
21
22
- Before proceeding, ensure the following:
23
-
24
- - ** Coder CLI** is installed and configured in your environment.
25
- - ** Terraform CLI** is installed and available in your CI environment.
26
- - Access to your ** Coder instance** with the appropriate
27
- [ permissions] ( ../admin/users/groups-roles.md#roles ) .
22
+ - Install and configure Coder CLI in your environment.
23
+ - Install Terraform CLI in your CI environment.
24
+ - Configure [ user roles and permissions] ( ../admin/users/groups-roles.md#roles ) for your Coder instance.
28
25
29
26
## Example GitHub Action Workflow
30
27
31
- Below is an example workflow for testing and publishing a template using GitHub
32
- Actions. The workflow first validates the Terraform template, pushes the
33
- template to Coder without activating it, tests the template by creating a
34
- workspace, and then promotes the template version to active upon successful
35
- workspace creation.
28
+ This example workflow tests and publishes a template using GitHub
29
+ Actions.
36
30
37
- ### Step-by-Step Process
31
+ The workflow:
38
32
39
- 1 . ** Validate the Terraform template.**
40
- 2 . ** Push the template to Coder without activating it.**
41
- 3 . ** Test the template by creating a workspace.**
42
- 4 . ** Promote the template version to active upon successful workspace
43
- creation.**
33
+ 1 . Validates the Terraform template.
34
+ 1 . Pushes the template to Coder without activating it.
35
+ 1 . Tests the template by creating a workspace.
36
+ 1 . Promotes the template version to active upon successful workspace creation.
44
37
45
38
### Workflow File
46
39
0 commit comments