artifacts
This commit is contained in:
1 parent
ff53c49459
commit
ea7f6c01f8
1 file changed
+6
@@ -17,12 +17,18 @@ validate_${name}:
|
||||
script:
|
||||
- terraform -chdir=$dir init -backend=false
|
||||
- terraform -chdir=$dir validate
|
||||
artifacts:
|
||||
paths:
|
||||
- .terraform.lock.hcl
|
||||
expire_in: 1 hour
|
||||
|
||||
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}
|
||||
dependencies:
|
||||
- validate_${name}
|
||||
EOF
|
||||
|
||||
done
|
||||
Reference in new issue
Block a user