Updates with upstream yamllint ci pipeline
This commit is contained in:
@@ -10,4 +10,4 @@ steps:
|
|||||||
- name: lint
|
- name: lint
|
||||||
image: bdebyl/yamllint
|
image: bdebyl/yamllint
|
||||||
command:
|
command:
|
||||||
- .lint.sh
|
- make lint-ci
|
||||||
|
|||||||
7
.lint.sh
7
.lint.sh
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
export YML_FILES="$(find ansible/ -name '*.yml' -not -name '*vault*')"
|
|
||||||
|
|
||||||
# Source the lint variables file (shared with Makefile)
|
|
||||||
. ./.lint-vars.sh
|
|
||||||
ansible-lint -x "$ANSIBLE_LINT_SKIP_LIST" $YML_FILES
|
|
||||||
yamllint $YML_FILES
|
|
||||||
6
Makefile
6
Makefile
@@ -60,3 +60,9 @@ lint: ${LINT_YAML} ${LINT_ANSIBLE} ${SKIP_FILE}
|
|||||||
-@${LINT_YAML} ${YAML_FILES}
|
-@${LINT_YAML} ${YAML_FILES}
|
||||||
@. ${SKIP_FILE}; printf "Running ansible-lint with SKIP_LIST: [%s]...\n" "$$ANSIBLE_LINT_SKIP_LIST"
|
@. ${SKIP_FILE}; printf "Running ansible-lint with SKIP_LIST: [%s]...\n" "$$ANSIBLE_LINT_SKIP_LIST"
|
||||||
-@. ${SKIP_FILE}; ${LINT_ANSIBLE} -x $$ANSIBLE_LINT_SKIP_LIST ${YAML_FILES}
|
-@. ${SKIP_FILE}; ${LINT_ANSIBLE} -x $$ANSIBLE_LINT_SKIP_LIST ${YAML_FILES}
|
||||||
|
|
||||||
|
lint-ci: ${SKIP_FILE}
|
||||||
|
@printf "Running yamllint...\n"
|
||||||
|
@yamllint ${YAML_FILES}
|
||||||
|
@. ${SKIP_FILE}; printf "Running ansible-lint with SKIP_LIST: [%s]...\n" "$$ANSIBLE_LINT_SKIP_LIST"
|
||||||
|
@. ${SKIP_FILE}; ansible-lint -x $$ANSIBLE_LINT_SKIP_LIST ${YAML_FILES}
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ Just as Dorothy managed the simple task of clicking her heels together, the
|
|||||||
desire for an equally simple one-button push deployment was in my heart. Thus,
|
desire for an equally simple one-button push deployment was in my heart. Thus,
|
||||||
this repository was made.
|
this repository was made.
|
||||||
|
|
||||||
|
[](https://ci.bdebyl.net/bdebyl/deploy_home)
|
||||||
|
|
||||||
## Ansible
|
## Ansible
|
||||||
Ansible, along with double-encrypted secrets, deploys the necessary
|
Ansible, along with double-encrypted secrets, deploys the necessary
|
||||||
configurations to make the home fit for certain needs and desires. Namely,
|
configurations to make the home fit for certain needs and desires. Namely,
|
||||||
|
|||||||
Reference in New Issue
Block a user