.gitlab-ci.yml 426 Bytes
Newer Older
1
deploy:  
2
  image: alpine:latest
3
4
  only:
    - master
5
6
7
8
9
10
11
12
  before_script:
    - apk add --update openssh-client bash
    - eval $(ssh-agent -s)
    - bash -c 'ssh-add <(echo "$DEPLOY_PRIVKEY")'
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh
    - ssh-keyscan thealternative.ch >> ~/.ssh/known_hosts
    - chmod 644 ~/.ssh/known_hosts
13
  script:
14
    - ssh thealt-website@thealternative.ch 'cd /home/thealt-website/website; git pull'