Commit 04a0f193 authored by rajat.kulkarni's avatar rajat.kulkarni

Update .gitlab-ci.yml

parent 0cd68553
Pipeline #23532 failed with stages
in 2 minutes and 27 seconds
...@@ -50,9 +50,10 @@ deploy: ...@@ -50,9 +50,10 @@ deploy:
stage: deploy stage: deploy
script: script:
- terraform plan - terraform plan
- touch aa.plan - touch aa.terraform
- terraform plan -out aa.terraform - terraform plan -out aa.terraform
- terraform apply aa.terraform - terraform apply aa.terraform
- terraform destroy
#- terraform apply config.plan #- terraform apply config.plan
only: only:
- master - master
...@@ -76,6 +77,7 @@ destroy: ...@@ -76,6 +77,7 @@ destroy:
- rr - rr
stage: destroy stage: destroy
script: script:
- terraform init
- echo "Destroying resources" - echo "Destroying resources"
- terraform destroy - terraform destroy
# dependencies: # dependencies:
...@@ -83,5 +85,4 @@ destroy: ...@@ -83,5 +85,4 @@ destroy:
# - apply # - apply
#when: manual #when: manual
only: only:
refs: - master
- master \ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment