Browse Source

Use prebuilt image for CI

refactoring
fnux 3 years ago
parent
commit
f6f65fd8c5
  1. 8
      .gitlab-ci.yml
  2. 7
      Dockerfile

8
.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

7
Dockerfile

@ -0,0 +1,7 @@
# This image used for CI.
FROM debian:latest
MAINTAINER Timothée Floure <timothee.floure@ungleich.ch>
RUN apt-get update
RUN apt-get install -y make lektor imagemagick openssh-client rsync
Loading…
Cancel
Save