websites-generic.yml 440 Bytes
Newer Older
Bhushan Shah's avatar
Bhushan Shah committed
1 2 3 4 5
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'
6
  - echo "$OLIOS_SSH_HOST_KEYS" >> ~/.ssh/known_hosts
Bhushan Shah's avatar
Bhushan Shah committed
7 8 9 10 11 12
  - chmod 644 ~/.ssh/known_hosts

pages:
  stage: deploy
  script:
  - rsync -Hav --delete . "sitedeployer@olios.kde.org:/srv/www/generated/$WEBSITE_DIR/"
13 14
  only:
  - master