Skip to content
Snippets Groups Projects
Commit 38feb470 authored by MUNIER Florian's avatar MUNIER Florian
Browse files

Update .gitlab-ci.yml file

parent 5314280d
No related branches found
No related tags found
No related merge requests found
Pipeline #14088 failed
......@@ -20,6 +20,7 @@ init_step:
script:
- source $OPENRC
- env | grep OS_
- cd Terraform
- terraform init
artifacts:
name: "init_step:${CI_JOB_ID}"
......@@ -60,6 +61,7 @@ plan_step:
only:
- master
script:
- cd Terraform
- terraform plan -out=tfplan
artifacts:
name: "plan_step:${CI_JOB_ID}"
......@@ -70,7 +72,6 @@ plan_step:
dependencies:
- init_step
apply_step:
stage: apply
only:
......@@ -80,6 +81,7 @@ apply_step:
- source ./venv/ansible/bin/activate
- pip install ansible
script:
- cd Terraform
- terraform apply -input=false tfplan
dependencies:
- init_step
......@@ -99,6 +101,7 @@ destroy_step:
only:
- master
script:
- cd Terraform
- terraform destroy -auto-approve
when: manual
dependencies:
......@@ -122,6 +125,7 @@ destroy_on_failure:
only:
- master
script:
- cd Terraform
- terraform destroy -auto-approve
when: on_failure
dependencies:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment