Commit b91fe703 authored by rajat.kulkarni's avatar rajat.kulkarni

Update .gitlab-ci.yml

parent 8fa3743d
Pipeline #23482 failed
...@@ -18,17 +18,12 @@ variables: ...@@ -18,17 +18,12 @@ variables:
TF_CACHE_KEY: default TF_CACHE_KEY: default
TF_STATE_NAME: default TF_STATE_NAME: default
cache: cache:
paths: paths:
- .terraform - .terraform
stages: stages:
- install
- build - build
- plan - plan
- apply - apply
...@@ -36,40 +31,8 @@ stages: ...@@ -36,40 +31,8 @@ stages:
# #install:
# tags:
# - rr
# stage: install
# script:
# #- wget https://releases.hashicorp.com/terraform/0.12.29/terraform_0.12.29_linux_amd64.zip
# #- unzip terraform_0.12.29_linux_amd64.zip
# #- curl -O https://releases.hashicorp.com/terraform/0.11.10/terraform_0.11.10_linux_amd64.zip
# #- unzip terraform_0.11.10_linux_amd64.zip -d /C:/Users/rajat.kulkarni/GitLab-Runner/
# #- rm terraform_0.11.10_linux_amd64.zip
# #- git clone https://github.com/Zordrak/tfenv.git ~/.tfenv
# #- echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> $HOME/bashrc
# #- terraform --version
# #- mv terraform /usr/local/bin/
# #- chown -R root:root /usr/local/bin/terraform
# #- terraform_0.11.14_linux_amd64.zip
# #- export PATH=$PATH:$HOME/terraform
# only:
# - master
#build:
# tags:
# - rr
#stage: build
#script:
# - terraform init -input=false
#only:
# - master
build: build:
#image: alpine:latest #image: alpine:latest
stage: build stage: build
...@@ -81,8 +44,6 @@ build: ...@@ -81,8 +44,6 @@ build:
- master - master
plan: plan:
tags:
- rr
stage: plan stage: plan
script: script:
- terraform plan -out "planfile" - terraform plan -out "planfile"
...@@ -90,6 +51,8 @@ plan: ...@@ -90,6 +51,8 @@ plan:
- master - master
dependencies: dependencies:
- build - build
tags:
- rr
apply: apply:
tags: tags:
......
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