Updates with upstream yamllint ci pipeline

This commit is contained in:
Bastian de Byl
2020-09-25 15:48:17 -04:00
parent 3d8b7024e4
commit 189255db01
4 changed files with 9 additions and 8 deletions

View File

@@ -10,4 +10,4 @@ steps:
- name: lint - name: lint
image: bdebyl/yamllint image: bdebyl/yamllint
command: command:
- .lint.sh - make lint-ci

View File

@@ -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

View File

@@ -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}

View File

@@ -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.
[![Build Status](https://ci.bdebyl.net/api/badges/bdebyl/deploy_home/status.svg)](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,