-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the Github workflow for the Terraform checks
Signed-off-by: gatici <[email protected]>
- Loading branch information
Showing
5 changed files
with
43 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check the Terraform Module | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**.tf' | ||
|
||
jobs: | ||
build: | ||
name: Terraform Checks and Plans | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository to the runner | ||
uses: actions/checkout@v3 | ||
|
||
- name: HashiCorp - Setup Terraform | ||
uses: hashicorp/setup-terraform@v3 | ||
|
||
- name: Terraform Format | ||
id: fmt | ||
run: terraform fmt -recursive -check | ||
continue-on-error: true | ||
|
||
- name: Terraform Init | ||
id: init | ||
run: terraform init | ||
|
||
- name: Terraform Validate | ||
id: validate | ||
run: terraform validate -no-color |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Mandatory Config Options | ||
model_name = "put your model-name here" | ||
|
||
# Optional Configuration | ||
channel = "put the charm channel here" | ||
metrics_remote_write_offer_url = "Put the URL here" | ||
logging_offer_url = "Put the URL here" | ||
grafana-config = { | ||
tls_insecure_skip_verify = "put True not to skip the TLS verification" | ||
} | ||
# Optional Configuration. | ||
# channel = "put the Charm channel here" | ||
# metrics_remote_write_offer_url = "Put the URL here" | ||
# logging_offer_url = "Put the URL here" | ||
# grafana-config = { | ||
# tls_insecure_skip_verify = "put True not to skip the TLS verification" | ||
# } |