Skip to content

Commit

Permalink
debugging pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 committed Jul 5, 2019
1 parent 00332e9 commit 34afdab
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ steps:
- cp providers.tf.example examples/from_scratch/providers.tf
- cp backend.tf.example examples/from_scratch/backend.tf
- cd examples/from_scratch
- sed -i "s/REPLACE/$DRONE_BUILD_NUMBER/g" backend.tf
- sed -i "s/REPLACE/$DRONE_REPO_NAME$DRONE_BUILD_NUMBER/g" backend.tf
- terraform init
- terraform apply --auto-approve -var "deployment_id=fromscratch$DRONE_BUILD_NUMBER"
- terraform apply --auto-approve -var "deployment_id=fromscratch$DRONE_REPO_NAME$DRONE_BUILD_NUMBER"
- terraform -v
when:
event:
Expand All @@ -62,9 +62,9 @@ steps:
- cp providers.tf.example examples/from_scratch/providers.tf
- cp backend.tf.example examples/from_scratch/backend.tf
- cd examples/from_scratch
- sed -i "s/REPLACE/$DRONE_BUILD_NUMBER/g" backend.tf
- sed -i "s/REPLACE/$DRONE_REPO_NAME$DRONE_BUILD_NUMBER/g" backend.tf
- terraform init
- terraform destroy --auto-approve -var "deployment_id=fromscratch$DRONE_BUILD_NUMBER" -refresh=false
- terraform destroy --auto-approve -var "deployment_id=fromscratch$DRONE_REPO_NAME$DRONE_BUILD_NUMBER" -refresh=false
- terraform -v
when:
event:
Expand All @@ -88,9 +88,10 @@ steps:
- cp providers.tf.example examples/into_existing_subnets/providers.tf
- cp backend.tf.example examples/into_existing_subnets/backend.tf
- cd examples/into_existing_subnets
- sed -i "s/REPLACE/intosubnets$DRONE_BUILD_NUMBER/g" backend.tf
- sed -i "s/REPLACE/intosubnets$DRONE_REPO_NAME$DRONE_BUILD_NUMBER/g" backend.tf
- terraform init
- terraform apply --auto-approve -var "deployment_id=intosubnets$DRONE_BUILD_NUMBER"
- terraform apply --auto-approve -var "deployment_id=intosubnets$DRONE_REPO_NAME$DRONE_BUILD_NUMBER" --target=module.vpc
- terraform apply --auto-approve -var "deployment_id=intosubnets$DRONE_REPO_NAME$DRONE_BUILD_NUMBER"
- terraform -v
when:
event:
Expand All @@ -111,9 +112,9 @@ steps:
- cp providers.tf.example examples/into_existing_subnets/providers.tf
- cp backend.tf.example examples/into_existing_subnets/backend.tf
- cd examples/into_existing_subnets
- sed -i "s/REPLACE/intosubnets$DRONE_BUILD_NUMBER/g" backend.tf
- sed -i "s/REPLACE/intosubnets$DRONE_REPO_NAME$DRONE_BUILD_NUMBER/g" backend.tf
- terraform init
- terraform destroy --auto-approve -var "deployment_id=intosubnets$DRONE_BUILD_NUMBER" -refresh=false
- terraform destroy --auto-approve -var "deployment_id=intosubnets$DRONE_REPO_NAME$DRONE_BUILD_NUMBER" -refresh=false
- terraform -v
when:
event:
Expand Down

0 comments on commit 34afdab

Please sign in to comment.