From f6f65fd8c58a00b9e870d0c97ac340d1b7373281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Fri, 7 Feb 2020 19:36:25 +0100 Subject: [PATCH] Use prebuilt image for CI --- .gitlab-ci.yml | 8 +------- Dockerfile | 7 +++++++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6cced24..7a6dbe7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,15 +2,12 @@ stages: - build - deploy -image: debian:latest +image: registry.gitlab.com/fnux/ungleich-images/staticcms-ci:latest variables: BUILDDIR: "build/" build: stage: build - before_script: - - apt-get update - - apt-get install -y make lektor imagemagick script: - make build artifacts: @@ -26,9 +23,6 @@ deploy: name: production url: https://ungleich.ch/ before_script: - # Install dependencies - - apt-get update - - apt-get install -y make openssh-client rsync # Configure the SSH Agent - eval $(ssh-agent -s) - echo "$CD_SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ad99858 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +# This image used for CI. + +FROM debian:latest +MAINTAINER Timothée Floure + +RUN apt-get update +RUN apt-get install -y make lektor imagemagick openssh-client rsync