Skip to content
Snippets Groups Projects
Commit 024c47e5 authored by nimrod's avatar nimrod
Browse files

Templates.

- Use CI templates.
- Use common pre-commit config from snippet.
- Address pre-commit issues.
parent 02407692
Branches
No related tags found
No related merge requests found
Pipeline #306 failed
--- ---
image: adarnimrod/ci-images:docker include:
- project: shore/ci-templates
stages: file: templates/docker-compose.yml
- test
- build
pre-commit:
stage: test
image: adarnimrod/ci-images:pre-commit
variables:
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
# Disabled until https://github.com/pre-commit/pre-commit/issues/1387 is
# resolved.
SKIP: "hadolint,docker-compose"
script:
- pre-commit run --all-files
cache:
paths:
- .cache/
build-host01: build-host01:
stage: build extends: .compose-build
tags: tags: [host01.shore.co.il]
- host01.shore.co.il
variables: &build_vars
COMPOSE_DOCKER_CLI_BUILD: "1"
DOCKER_BUILDKIT: "1"
script: &build_script
- docker-compose build --no-cache --pull
- docker-compose pull --quiet
build-kodi:
stage: build
tags:
- kodi.shore.co.il
variables: *build_vars
script: *build_script
build-ns4: build-ns4:
stage: build extends: .compose-build
tags: tags: [ns4.shore.co.il]
- ns4.shore.co.il
variables: *build_vars build-kodi:
script: *build_script extends: .compose-build
tags: [kodi.shore.co.il]
# vim:ff=unix ts=2 sw=2 ai expandtab
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v2.3.0 rev: v3.4.0
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-merge-conflict - id: check-merge-conflict
- id: detect-private-key - id: check-symlinks
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/Yelp/detect-secrets
rev: v0.14.3
hooks:
- id: detect-secrets
- repo: https://github.com/adrienverge/yamllint - repo: https://github.com/adrienverge/yamllint
rev: v1.17.0 rev: v1.25.0
hooks: hooks:
- id: yamllint - id: yamllint
- repo: https://github.com/amperser/proselint/ - repo: https://github.com/amperser/proselint/
rev: 0.10.2 rev: 0.10.2
hooks: hooks:
- id: proselint - id: proselint
types: [plain-text] types: [plain-text]
exclude: LICENSE exclude: LICENSE
- repo: https://github.com/Yelp/detect-secrets
rev: v0.13.0 - repo: https://github.com/executablebooks/mdformat.git
hooks: rev: 0.5.3
- id: detect-secrets
- repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/
rev: v0.3.0
hooks: hooks:
- id: docker-compose - id: mdformat
- id: hadolint
- repo: https://git.shore.co.il/nimrod/shell-pre-commit.git - repo: https://git.shore.co.il/nimrod/shell-pre-commit.git
sha: v0.6.0 rev: v0.6.0
hooks: hooks:
- id: shell-lint - id: shell-lint
- repo: https://github.com/shellcheck-py/shellcheck-py.git
rev: v0.7.1.1
hooks:
- id: shellcheck - id: shellcheck
- repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/
rev: v0.3.0
hooks:
- id: hadolint
- id: docker-compose
...@@ -25,8 +25,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`). ...@@ -25,8 +25,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`).
## Author Information ## Author Information
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website]( Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
https://www.shore.co.il/). Patches are welcome via [`git send-email`]( [website](https://www.shore.co.il/). Patches are welcome via
http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located [`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
at: <https://www.shore.co.il/git/>. is located at: <https://git.shore.co.il/expore/>.
...@@ -14,7 +14,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`). ...@@ -14,7 +14,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`).
## Author Information ## Author Information
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website]( Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
https://www.shore.co.il/). Patches are welcome via [`git send-email`]( [website](https://www.shore.co.il/). Patches are welcome via
http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located [`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
at: <https://git.shore.co.il/nimrod/>. is located at: <https://git.shore.co.il/expore/>.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment