websites-jekyll.yml 564 Bytes
Newer Older
1
image: ruby:2.6
Bhushan Shah's avatar
Bhushan Shah committed
2 3 4 5 6 7 8 9 10 11

cache:
  paths:
  - vendor/

before_script:
  - apt-get update -y && apt-get install openssh-client rsync -y
  - eval $(ssh-agent -s)
  - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
  - 'mkdir -p ~/.ssh && chmod 700 ~/.ssh'
12
  - echo "$OLIOS_SSH_HOST_KEYS" >> ~/.ssh/known_hosts
Bhushan Shah's avatar
Bhushan Shah committed
13 14 15 16 17 18 19 20
  - chmod 644 ~/.ssh/known_hosts
  - bundle install --path vendor

pages:
  stage: deploy
  script:
  - bundle exec jekyll build -d public
  - rsync -Hav --delete public/ "sitedeployer@olios.kde.org:/srv/www/generated/$WEBSITE_DIR/"
21 22
  only:
  - master