diff --git a/README.md b/README.md index fd960a9d19ecc14f61342ca603b9234169889ae2..95ec9b9c78738d04469eb8404c8b02aebc1986ec 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 0000000000000000000000000000000000000000..2c622aef0234cd99d1782bba2774a5f5c94139f5 --- /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'