artifacts

This commit is contained in:
anthorob committed 2025-07-09 06:26:31 -04:00
1 parent ff53c49459
commit ea7f6c01f8
1 file changed
+6
+6
View File
@@ -17,12 +17,18 @@ validate_${name}:
script: script:
- terraform -chdir=$dir init -backend=false - terraform -chdir=$dir init -backend=false
- terraform -chdir=$dir validate - terraform -chdir=$dir validate
artifacts:
paths:
- .terraform.lock.hcl
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:
- validate_${name}
EOF EOF
done done