mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
fix missing plan file for terraform apply
This commit is contained in:
parent
d565303160
commit
01e4ae4070
1 changed files with 18 additions and 4 deletions
|
|
@ -3,7 +3,6 @@ include:
|
|||
- template: Security/License-Scanning.gitlab-ci.yml
|
||||
- template: Security/Dependency-Scanning.gitlab-ci.yml
|
||||
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
|
|
@ -147,6 +146,9 @@ init terraform:
|
|||
- cd .terraform
|
||||
script:
|
||||
- gitlab-terraform init
|
||||
cache:
|
||||
paths:
|
||||
- .terraform
|
||||
|
||||
validate terraform:
|
||||
stage: deploy
|
||||
|
|
@ -157,6 +159,9 @@ validate terraform:
|
|||
- gitlab-terraform validate
|
||||
needs:
|
||||
- job: init terraform
|
||||
cache:
|
||||
paths:
|
||||
- .terraform
|
||||
|
||||
plan terraform:
|
||||
stage: deploy
|
||||
|
|
@ -164,9 +169,15 @@ plan terraform:
|
|||
before_script:
|
||||
- cd .terraform
|
||||
script:
|
||||
- gitlab-terraform plan
|
||||
- gitlab-terraform plan -out=plan.tfplan
|
||||
needs:
|
||||
- job: validate terraform
|
||||
cache:
|
||||
paths:
|
||||
- .terraform
|
||||
artifacts:
|
||||
paths:
|
||||
- plan.tfplan
|
||||
|
||||
apply terraform:
|
||||
stage: deploy
|
||||
|
|
@ -174,6 +185,9 @@ apply terraform:
|
|||
before_script:
|
||||
- cd .terraform
|
||||
script:
|
||||
- gitlab-terraform apply
|
||||
- gitlab-terraform apply -input=false plan.tfplan
|
||||
needs:
|
||||
- job: plan terraform
|
||||
- job: plan terraform
|
||||
cache:
|
||||
paths:
|
||||
- .terraform
|
||||
Loading…
Add table
Reference in a new issue