Last active
May 28, 2023 16:26
-
-
Save niall-byrne/3e88cf22901e2a5eac2ede71c5606331 to your computer and use it in GitHub Desktop.
cicd-tools
This file contains hidden or 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
--- | |
- id: cc-format-shell | |
name: cc-format-shell | |
description: "Format the project's shell scripts." | |
entry: --entrypoint=shfmt --env=FORCE_COLOR=1 ghcr.io/niall-byrne/cicd-tools:master | |
args: | |
- "-w" | |
- "--indent=2" | |
- "-ci" | |
- "-sr" | |
exclude: "^{{cookiecutter\\.project_slug}}/.+$|^\\.cicd-tools/boxes/.+$" | |
files: "^.+\\.(bash|sh)$" | |
language: docker_image | |
pass_filenames: true | |
stages: [manual] | |
- id: cc-format-toml | |
name: cc-format-toml | |
description: "Format the project's TOML files." | |
entry: --entrypoint=tomll --env=FORCE_COLOR=1 ghcr.io/niall-byrne/cicd-tools:master | |
files: "^.+\\.toml$" | |
language: docker_image | |
pass_filenames: true | |
stages: [manual] | |
- id: std-ansible-lint | |
name: std-ansible-lint | |
description: "Check the profile for Ansible best practices." | |
entry: ./.cicd-tools/boxes/bootstrap/pre-commit/ansible-lint.sh | |
files: "^.+\\.(yaml|yml)$|^.ansible-lint$" | |
language: system | |
pass_filenames: false | |
stages: [commit] | |
- id: std-format-shell | |
name: std-format-shell | |
description: "Format the project's shell scripts." | |
entry: --entrypoint=shfmt --env=FORCE_COLOR=1 ghcr.io/niall-byrne/cicd-tools:master | |
args: | |
- "-w" | |
- "--indent=2" | |
- "-ci" | |
- "-sr" | |
exclude: "^\\.cicd-tools/boxes/.+$" | |
files: "^.+\\.(bash|sh)$" | |
language: docker_image | |
pass_filenames: true | |
stages: [manual] | |
- id: std-format-toml | |
name: std-format-toml | |
description: "Format the project's TOML files." | |
entry: --entrypoint=tomll --env=FORCE_COLOR=1 ghcr.io/niall-byrne/cicd-tools:master | |
files: "^.+\\.toml$" | |
language: docker_image | |
pass_filenames: true | |
stages: [manual] | |
- id: std-shell-fmt-lint | |
name: std-shell-fmt-lint | |
description: "Lint the project's shell script's formatting." | |
entry: --entrypoint=shfmt --env=FORCE_COLOR=1 ghcr.io/niall-byrne/cicd-tools:master | |
args: | |
- "-d" | |
- "--indent=2" | |
- "-ci" | |
- "-sr" | |
exclude: "^\\.cicd-tools/boxes/.+$" | |
files: "^.+\\.(bash|sh)$" | |
language: docker_image | |
pass_filenames: true | |
stages: [commit] | |
- id: std-shell-lint | |
name: std-shell-lint | |
description: "Lint the project's shell scripts." | |
entry: --entrypoint=shellcheck ghcr.io/niall-byrne/cicd-tools:master | |
args: | |
- "--color=always" | |
- "--source-path=SCRIPTDIR" | |
- "--exclude=SC2317" | |
- "-x" | |
exclude: "^\\.cicd-tools/boxes/.+$" | |
files: "^.+\\.(bash|sh)$" | |
language: docker_image | |
pass_filenames: true | |
stages: [commit] | |
- id: std-toml-lint | |
name: std-toml-lint | |
description: "Lint the project's TOML files." | |
entry: ./.cicd-tools/boxes/bootstrap/pre-commit/toml-lint.sh | |
args: | |
- ghcr.io/niall-byrne/cicd-tools:master | |
files: "^.+\\.toml$" | |
language: system | |
stages: [commit] | |
pass_filenames: true | |
- id: std-workflow-header-lint | |
name: std-workflow-header-lint | |
description: "Lint the headers of the project's GitHub workflow files." | |
entry: ./.cicd-tools/boxes/bootstrap/pre-commit/workflow-header-lint.sh | |
files: "^.github/workflows/.+\\.(yaml|yml)$" | |
language: system | |
pass_filenames: true | |
stages: [commit] | |
- id: std-workflow-lint | |
name: std-workflow-lint | |
description: "Lint the project's GitHub workflow files." | |
entry: --entrypoint=actionlint ghcr.io/niall-byrne/cicd-tools:master | |
args: | |
- "-color" | |
- "-config-file" | |
- ".cicd-tools/configuration/actionlint.yaml" | |
files: "^.github/workflows/.+\\.(yaml|yml)$" | |
language: docker_image | |
pass_filenames: false | |
stages: [commit] |
This file contains hidden or 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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
{ | |
"disable_security": false, | |
"manifest": { | |
"0.1.0.tar.gz": "0896d172103dad864fcf4d4cb41b566f9d894ea1ec0d4f9ba6d8693160dccf88" | |
}, | |
"source": "https://raw.githubusercontent.com/niall-byrne/cicd-tools", | |
"toolbox_path": "cicd-tools/boxes", | |
"version": "master" | |
} | |
-----BEGIN PGP SIGNATURE----- | |
iHUEARYKAB0WIQTwenlkfpHlYaeGttDZAg9/7iDb8gUCZHJESQAKCRDZAg9/7iDb | |
8gVSAP0TWhNe2qlm95GghcLApzgcajVAvY9Zt2N6mHfGafFpSgEAgTtKljXZlTjn | |
2ZT24fXhtTwfw7nuCxkvmPVogQVvPAI= | |
=g7r3 | |
-----END PGP SIGNATURE----- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment