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 cat <<EOF
validate_${name}: validate_$name:
stage: validate stage: validate
image: registry.bobert.me/anthorob/coder-images:terraform-shell image: registry.bobert.me/anthorob/coder-images:terraform-shell
script: script:
@@ -19,16 +19,16 @@ validate_${name}:
- terraform -chdir=$dir validate - terraform -chdir=$dir validate
artifacts: artifacts:
paths: paths:
- .terraform.lock.hcl - $dir/.terraform.lock.hcl
expire_in: 1 hour expire_in: 1 hour
deploy_${name}: deploy_$name:
stage: deploy stage: deploy
image: registry.bobert.me/anthorob/coder-images:coder-cli image: registry.bobert.me/anthorob/coder-images:coder-cli
script: 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: dependencies:
- validate_${name} - validate_$name
EOF EOF
done done