From b5a979a816c953d03f558921d9cec7e9dcbce3ad Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Mon, 15 Nov 2021 21:17:44 +0200
Subject: [PATCH] Move the GitLab CI template locally.

I think it should be a part of this project as they are develeoped
hand-in-hand.
---
 README.md                           |  4 ++--
 gitlab-ci-template/presentation.yml | 16 ++++++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 gitlab-ci-template/presentation.yml

diff --git a/README.md b/README.md
index fd960a9..95ec9b9 100644
--- a/README.md
+++ b/README.md
@@ -16,8 +16,8 @@ add a shell alias
 See the example folder for more details and the [generated
 PDF](https://git.shore.co.il/nimrod/presentation/-/jobs/artifacts/master/raw/example/presentation.pdf?job=presentation%20build).
 
-If you're using GitLab, check out my [CI
-template](https://git.shore.co.il/shore/ci-templates/-/blob/master/templates/presentation.yml)
+If you're using GitLab, check out the [CI
+template](https://git.shore.co.il/nimrod/presentation/-/blob/master/gitlab-ci-template/presentation.yml)
 if you wish to build presentation as part of a pipeline.
 
 ## Contains
diff --git a/gitlab-ci-template/presentation.yml b/gitlab-ci-template/presentation.yml
new file mode 100644
index 0000000..2c622ae
--- /dev/null
+++ b/gitlab-ci-template/presentation.yml
@@ -0,0 +1,16 @@
+---
+presentation build:
+  stage: build
+  tags: [ns4.shore.co.il]
+  image:
+    name: registry.shore.co.il/presentation
+    entrypoint: [""]
+  before_script:
+    - |
+      [ -z "${PRESENTATION_ROOT:-}" ] || cd "$PRESENTATION_ROOT"
+  script:
+    - make --jobs=4
+  artifacts:
+    paths:
+      - '*.pdf'
+      - '**/*.pdf'
-- 
GitLab