Skip to content
Snippets Groups Projects
Unverified Commit 3588d8d0 authored by Lukas Ruge's avatar Lukas Ruge
Browse files
parents 5e56b2d9 c482b4d5
Branches
Tags
No related merge requests found
Pipeline #2230 passed
stages: image: malteschmitz/ruby:2.6.6
- deploy
#muss als root, wird daher manuell gemacht
#before_script:
# - gem install bundler
# Cache modules in between jobs
cache: cache:
paths: key: ${CI_COMMIT_REF_SLUG}
- vendor/ 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: deploy:
stage: deploy only:
only: - master
- master tags:
script: - docker
- env LANG=en_US.UTF-8 bundle install --path=vendor/ script:
- env LANG=en_US.UTF-8 bundle exec jekyll build - bundle install --path=vendor/
- rsync -av --delete-after _site/ chaotikum-org@web:_site/ - bundle exec jekyll build
- rsync -av --delete-after _site/ chaotikum-org@[2a01:4f8:160:3067::a]:_site/
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
layout: [eventcal] layout: [eventcal]
title: "NooK Orga Online" title: "NooK Orga Online"
image: "/assets/wall.png" 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 eventend: 2020-06-15 22:00:00 +0200
#https://www.uuidgenerator.net/ #https://www.uuidgenerator.net/
uid: 31672320-21ce-44f6-b934-f65ddf30c2f7 uid: 31672320-21ce-44f6-b934-f65ddf30c2f7
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment