Skip to content
Snippets Groups Projects
Unverified Commit 3588d8d0 authored by Lukas Ruge's avatar Lukas Ruge
Browse files
parents 5e56b2d9 c482b4d5
No related branches found
No related tags found
No related merge requests found
Pipeline #2230 passed
stages:
- deploy
#muss als root, wird daher manuell gemacht
#before_script:
# - gem install bundler
image: malteschmitz/ruby:2.6.6
# Cache modules in between jobs
cache:
paths:
- vendor/
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/
before_script:
# Install ssh-agent if not already installed, it is required by Docker.
# (change apt-get to yum if you use a CentOS-based image)
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# Run ssh-agent (inside the build environment)
- eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY")
# For Docker builds disable host key checking. Be aware that by adding that
# you are suspectible to man-in-the-middle attacks.
# WARNING: Use this only with the Docker executor, if you use it with shell
# you will overwrite your user's SSH config.
# - mkdir -p ~/.ssh
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# In order to properly check the server's host key, assuming you created the
# SSH_SERVER_HOSTKEYS variable previously, uncomment the following two lines
# instead.
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo "$SSH_SERVER_HOSTKEY" > ~/.ssh/known_hosts'
deploy_site:
stage: deploy
only:
- master
script:
- env LANG=en_US.UTF-8 bundle install --path=vendor/
- env LANG=en_US.UTF-8 bundle exec jekyll build
- rsync -av --delete-after _site/ chaotikum-org@web:_site/
deploy:
only:
- master
tags:
- docker
script:
- bundle install --path=vendor/
- bundle exec jekyll build
- rsync -av --delete-after _site/ chaotikum-org@[2a01:4f8:160:3067::a]:_site/
......@@ -2,7 +2,7 @@
layout: [eventcal]
title: "NooK Orga Online"
image: "/assets/wall.png"
eventdate: 2020-06-15 20:00:00 +0200
eventdate: 2020-06-15 19:00:00 +0200
eventend: 2020-06-15 22:00:00 +0200
#https://www.uuidgenerator.net/
uid: 31672320-21ce-44f6-b934-f65ddf30c2f7
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment