From 1f1eca9721bedac375d9623a84170cccdbf23642 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sun, 27 Dec 2020 21:01:21 +0200
Subject: [PATCH] Use CI template.

---
 .gitlab-ci.yml | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d1dedd5..f92da7b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,16 +1,4 @@
 ---
-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/
+include:
+  - project: shore/ci-templates
+    file: templates/pre-commit.yml
-- 
GitLab