This commit is contained in:
anthorob committed 2025-07-09 06:30:20 -04:00
1 parent ea7f6c01f8
commit 01e077f23e
1 file changed
+5 -5
+5 -5
View File
@@ -11,7 +11,7 @@ for dir in templates/*; do
cat <<EOF
validate_${name}:
validate_$name:
stage: validate
image: registry.bobert.me/anthorob/coder-images:terraform-shell
script:
@@ -19,16 +19,16 @@ validate_${name}:
- terraform -chdir=$dir validate
artifacts:
paths:
- .terraform.lock.hcl
- $dir/.terraform.lock.hcl
expire_in: 1 hour
deploy_${name}:
deploy_$name:
stage: deploy
image: registry.bobert.me/anthorob/coder-images:coder-cli
script:
- coder templates push -d ${dir} --name "${CI_COMMIT_SHORT_SHA}" --message "Auto-deployed from ${CI_PROJECT_PATH} on commit ${CI_COMMIT_SHORT_SHA}" --yes ${name}
- coder templates push -d $dir --name "${CI_COMMIT_SHORT_SHA}" --message "Auto-deployed from ${CI_PROJECT_PATH} on commit ${CI_COMMIT_SHORT_SHA}" --yes $name
dependencies:
- validate_${name}
- validate_$name
EOF
done