-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature-3533 Adding Helm3 Support (#36)
* Removing version declaration. * Removing version declaration. * Removing helm repository * Adding require annotation and labels. * Adding tfversion file * Updating CI * Update .pre-commit-config.yaml Co-authored-by: Daniel Hoherd <[email protected]> * Update .pre-commit-config.yaml Co-authored-by: Daniel Hoherd <[email protected]> * Removing `terraform-install` command exec. * Enabling TFENV_AUTO_INSTALL param * Enabling environment variable into container. * Update variables.tf Co-authored-by: Daniel Hoherd <[email protected]> Co-authored-by: Daniel Hoherd <[email protected]>
- Loading branch information
1 parent
31f6024
commit ad36fcf
Showing
7 changed files
with
81 additions
and
32 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 |
---|---|---|
@@ -1,20 +1,48 @@ | ||
--- | ||
version: 2.1 | ||
|
||
jobs: | ||
terraform_lint: | ||
executors: | ||
pre-commit-executor: | ||
docker: | ||
- image: hashicorp/terraform:0.13.7 | ||
- image: quay.io/astronomer/ci-pre-commit:2022-06 | ||
environment: | ||
TFENV_AUTO_INSTALL: true | ||
|
||
workflows: | ||
pre-commit: | ||
jobs: | ||
- run_pre_commit | ||
|
||
jobs: | ||
run_pre_commit: | ||
executor: pre-commit-executor | ||
steps: | ||
- checkout | ||
- run: terraform init | ||
- run: terraform fmt -check=true | ||
- run: terraform validate | ||
- run: rm -rf .terraform | ||
- run: terraform -v | ||
- pre-commit-commands | ||
|
||
workflows: | ||
terraform_lint: | ||
jobs: | ||
- terraform_lint | ||
commands: | ||
pre-commit-commands: | ||
description: "Execute the pre-commit" | ||
steps: | ||
- run: | ||
name: Create pre-commit-cache-key.txt | ||
command: | | ||
cp .pre-commit-config.yaml /tmp/pre-commit-cache-key.txt | ||
python --version --version | sed 's/^/# /' >> /tmp/pre-commit-cache-key.txt | ||
- restore_cache: | ||
keys: | ||
- pre-commit-cache-{{ checksum "/tmp/pre-commit-cache-key.txt" }} | ||
- run: | ||
name: Install terraform-docs | ||
command: go install github.com/terraform-docs/[email protected] | ||
- run: | ||
name: Install pre-commit hooks | ||
command: pre-commit install-hooks | ||
- save_cache: | ||
key: pre-commit-cache-{{ checksum "/tmp/pre-commit-cache-key.txt" }} | ||
paths: | ||
- ~/.cache/pre-commit | ||
- run: | ||
name: Run pre-commit | ||
command: | | ||
pre-commit run --all-files --show-diff-on-failure |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
1.2.5 |
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
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