add entrypoint

This commit is contained in:
anthorob committed 2025-07-08 12:45:19 -04:00
1 parent ba926d1020
commit 09fb596920
1 file changed
+2
+2
View File
@@ -14,6 +14,7 @@ for dir in templates/*; do
validate_${name}: validate_${name}:
stage: validate stage: validate
image: hashicorp/terraform:1.12 image: hashicorp/terraform:1.12
entrypoint: ["/bin/sh", "-c"]
script: script:
- terraform -chdir=$dir init -backend=false - terraform -chdir=$dir init -backend=false
- terraform -chdir=$dir validate - terraform -chdir=$dir validate
@@ -21,6 +22,7 @@ validate_${name}:
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
entrypoint: ["/bin/sh", "-c"]
script: script:
- cd $dir - cd $dir
- coder templates push ${name} --tag "${CI_COMMIT_SHORT_SHA}" --description "Auto-deployed from ${CI_PROJECT_PATH} on commit ${CI_COMMIT_SHORT_SHA}" --latest --yes - coder templates push ${name} --tag "${CI_COMMIT_SHORT_SHA}" --description "Auto-deployed from ${CI_PROJECT_PATH} on commit ${CI_COMMIT_SHORT_SHA}" --latest --yes