Use prebuilt image for CI
This commit is contained in:
parent
56416953f9
commit
f6f65fd8c5
2 changed files with 8 additions and 7 deletions
|
@ -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
Normal file
7
Dockerfile
Normal file
|
@ -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…
Reference in a new issue