File tree 1 file changed +4
-4
lines changed
examples/resources/coderd_template
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
// Provider populated from environment variables
2
2
provider "coderd" {}
3
3
4
- // Get the commit SHA of the configuration's git repository
5
- variable "TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA " {
4
+ // Can be populated using an environment variable, or an external datasource script
5
+ variable "COMMIT_SHA " {
6
6
type = string
7
7
}
8
8
@@ -17,12 +17,12 @@ resource "coderd_template" "ubuntu-main" {
17
17
description = " The main template for developing on Ubuntu."
18
18
versions = [
19
19
{
20
- name = " stable-${ var . TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA } "
20
+ name = " stable-${ var . COMMIT_SHA } "
21
21
description = " The stable version of the template."
22
22
directory = " ./stable-template"
23
23
},
24
24
{
25
- name = " staging-${ var . TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA } "
25
+ name = " staging-${ var . COMMIT_SHA } "
26
26
description = " The staging version of the template."
27
27
directory = " ./staging-template"
28
28
}
You can’t perform that action at this time.
0 commit comments