|
|
|
@ -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 |
|
|
|
|