Update file terraform-gitlab.yml
This commit is contained in:
33
pipelines/terraform-gitlab.yml
Normal file
33
pipelines/terraform-gitlab.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
stages:
|
||||||
|
- plan
|
||||||
|
- apply
|
||||||
|
- destroy
|
||||||
|
|
||||||
|
include:
|
||||||
|
- project: 'developerdurp/yml'
|
||||||
|
ref: main
|
||||||
|
file:
|
||||||
|
- 'jobs/terraform.yml'
|
||||||
|
|
||||||
|
format:
|
||||||
|
stage: .pre
|
||||||
|
allow_failure: false
|
||||||
|
extends: .terraform_fmt
|
||||||
|
|
||||||
|
validate:
|
||||||
|
stage: .pre
|
||||||
|
allow_failure: false
|
||||||
|
extends: .terraform_validate
|
||||||
|
|
||||||
|
plan:
|
||||||
|
stage: plan
|
||||||
|
allow_failure: false
|
||||||
|
extends: .terraform_plan
|
||||||
|
needs: ["validate","format"]
|
||||||
|
|
||||||
|
apply:
|
||||||
|
stage: apply
|
||||||
|
allow_failure: false
|
||||||
|
extends: .terraform_apply
|
||||||
|
rules:
|
||||||
|
- when: manual
|
||||||
Reference in New Issue
Block a user