-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update pre-commit linters * Fix or ignore new linter errors * playbook contains "community.general.sudoers" which requires installing additional_dependencies. That however does not work with pre-commit SAS service therefore we have to disable that linter in the SAS service and run it with github actions.
- Loading branch information
Showing
3 changed files
with
26 additions
and
5 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,15 @@ | ||
exclude_paths: | ||
- temp | ||
- .github | ||
- .pre-commit-config.yaml | ||
parseable: true | ||
quiet: true | ||
skip_list: | ||
- "no-changed-when" | ||
- "package-latest" | ||
- "name[play]" | ||
- "name[casing]" | ||
- "fqcn[action]" | ||
- "fqcn[action-core]" | ||
use_default_rules: true | ||
verbosity: 1 |
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 |
---|---|---|
|
@@ -14,8 +14,6 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- uses: pre-commit/[email protected] | ||
- name: Setup `packer` | ||
uses: hashicorp/setup-packer@main | ||
|
@@ -24,6 +22,8 @@ jobs: | |
- name: packer validate | ||
run: | | ||
pushd src | ||
packer plugins install github.com/hashicorp/amazon | ||
packer plugins install github.com/hashicorp/ansible | ||
packer validate -var AmiImageName=validate template.json | ||
deploy: | ||
name: Deploy to AWS org-sagebase-imagecentral | ||
|
@@ -54,4 +54,6 @@ jobs: | |
- name: Build and Upload AMI | ||
run: | | ||
pushd src | ||
packer plugins install github.com/hashicorp/amazon | ||
packer plugins install github.com/hashicorp/ansible | ||
AWS_DEFAULT_REGION=${{ env.AWS_REGION }} packer build -force -var AmiImageName=${{ env.AMI_IMAGE_NAME }} template.json |
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