To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 981db449 authored by root's avatar root
Browse files

Update .gitlab.yml to push updates with SSH

parent be747350
Pipeline #99401 passed with stage
in 13 seconds
deploy:
image: cypress/base:14
image: alpine:latest
only:
- master
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
script:
- cd automation
- yarn install --cache-folder .yarn
- yarn run cypress run --spec "cypress/integration/deploy.spec.js" --env username=$DEPLOY_USERNAME,password=$DEPLOY_PASSWORD
\ No newline at end of file
- ssh thealt-website@thealternative.ch 'cd /home/thealt-website/website; git pull'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment