diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..d1dedd566073f8fc9aac1f56ea8676577f9a6de1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +--- +image: adarnimrod/ci-images:docker + +stages: + - test + +pre-commit: + stage: test + image: adarnimrod/ci-images:pre-commit + variables: + XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" + script: + - pre-commit run --all-files + cache: + paths: + - .cache/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 65a0fd4e98059a733d3668c0afc44ce5674da587..07bb123a5e3384c786cee29929ca0727c2f1838d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.5.0 + rev: v3.3.0 hooks: - id: check-added-large-files - id: check-executables-have-shebangs @@ -10,18 +10,18 @@ repos: - id: check-yaml - id: detect-private-key - id: trailing-whitespace - - repo: https://github.com/adarnimrod/ansible-pre-commit.git - rev: v0.9.0 + - repo: https://git.shore.co.il/ansible/ansible-pre-commit.git + rev: v0.8.0 hooks: - id: ansible-syntax-check files: bootstrap\.yaml|router\.yaml types: [yaml] - - repo: https://github.com/willthames/ansible-lint - rev: v4.3.0a0 + - repo: https://github.com/ansible/ansible-lint + rev: v4.3.7 hooks: - id: ansible-lint - repo: https://github.com/adrienverge/yamllint - rev: v1.21.0 + rev: v1.25.0 hooks: - id: yamllint - repo: https://github.com/amperser/proselint/ @@ -29,3 +29,8 @@ repos: hooks: - id: proselint types: [markdown] + - repo: https://github.com/Yelp/detect-secrets + rev: v0.14.3 + hooks: + - id: detect-secrets + exclude: Pipfile\.lock diff --git a/README.md b/README.md index 1bafc7480ccc3ff5ce1bf75f824fa22d322dae6d..06b2eff9c0bd067115fede3ca44923ad78165b2c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Homelab +# + Homelab +[](https://git.shore.co.il/shore/homelab/-/commits/master) > My homelab setup using Ansible. @@ -30,4 +32,4 @@ This software is licensed under the MIT license (see `LICENSE.txt`). Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website]( https://www.shore.co.il/). Patches are welcome via [`git send-email`]( http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located -at: <https://www.shore.co.il/git/>. +at: <https://git.shore.co.il/explore/>.