File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/resources/coderd_template Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11// Provider populated from environment variables
22provider "coderd" {}
33
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 " {
66 type = string
77}
88
@@ -17,12 +17,12 @@ resource "coderd_template" "ubuntu-main" {
1717 description = " The main template for developing on Ubuntu."
1818 versions = [
1919 {
20- name = " stable-${ var . TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA } "
20+ name = " stable-${ var . COMMIT_SHA } "
2121 description = " The stable version of the template."
2222 directory = " ./stable-template"
2323 },
2424 {
25- name = " staging-${ var . TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA } "
25+ name = " staging-${ var . COMMIT_SHA } "
2626 description = " The staging version of the template."
2727 directory = " ./staging-template"
2828 }
You can’t perform that action at this time.
0 commit comments