From 2790d13e5ac270d04f0f4a11c6bb9f30c73799d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Nar=C3=A7on?= <nicolas.narcon@inrae.fr> Date: Wed, 17 Aug 2022 21:47:57 +0200 Subject: [PATCH] CI: create gitlab-ci and Dockerfile for revealjs initialization --- .gitlab-ci.yml | 9 +++++++++ slides/Dockerfile | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 slides/Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..dda5850 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,9 @@ +image: docker:latest +services: +- docker:dind + +build-image: + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker build -t $CI_REGISTRY_IMAGE slides/. + - docker push $CI_REGISTRY_IMAGE \ No newline at end of file diff --git a/slides/Dockerfile b/slides/Dockerfile new file mode 100644 index 0000000..df640cf --- /dev/null +++ b/slides/Dockerfile @@ -0,0 +1,18 @@ +FROM alpine:latest + +# If we need the latest version of revealjs +# RUN wget -O reveal.zip https://github.com/hakimel/reveal.js/archive/master.zip +# RUN unzip reveal.zip -d reveal + +# Création d'un dossier public pour stocker notre future présentation +RUN mkdir /public + +# Copie des assets nécessaires reveal.js +COPY ./slides/revealjs /public/revealjs + +# Copie du fichier index.html modifié (gestion du markdown, et lien vers le fichier css custom) +COPY ./slides/index.html /public/ +COPY ./slides/illustrations /public/illustrations + +# Copie des styles custom +COPY ./slides/otb.css /public/ \ No newline at end of file -- GitLab