-
Notifications
You must be signed in to change notification settings - Fork 0
Create terraform.yml #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Neel050302 <[email protected]>
Signed-off-by: Neel050302 <[email protected]>
add github secrect Signed-off-by: Neel050302 <[email protected]>
Signed-off-by: Neel050302 <[email protected]>
Signed-off-by: Neel050302 <[email protected]>
| @@ -0,0 +1,21 @@ | |||
| provider "google" { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this file? doesn't appear necessary
| - name: 'Configure GCP Region' | ||
| run: gcloud config set compute/region australia-southeast2 | ||
|
|
||
| # No need to change directory since Terraform files are in the root directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not a good check of the root modules if they aren't being checked
| run: gcloud config set compute/region australia-southeast2 | ||
|
|
||
| # No need to change directory since Terraform files are in the root directory | ||
| - name: Terraform Init |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
terraform init is a good choice for a terraform ci check
| - name: Terraform Init | ||
| run: terraform init | ||
|
|
||
| - name: Terraform Format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
terraform format checking is a good choice for a terraform ci check
| - name: Terraform Plan | ||
| run: terraform plan -input=false | ||
|
|
||
| - name: Terraform Apply |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apply should not be ran as a basic terraform ci check
theraginggoblin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets have a conversation about what it should check and how it checks it
What does this pull request do?
Test evidence