Commit 5abb2281 authored by nimrod's avatar nimrod
Browse files

GitLab CI.

parent 94d4a10e
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+16 −0
Original line number Diff line number Diff line
---
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/
+11 −6
Original line number Diff line number Diff line
---
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
+4 −2
Original line number Diff line number Diff line
# Homelab
#
 Homelab
[![pipeline status](https://git.shore.co.il/shore/homelab/badges/master/pipeline.svg)](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/>.