Commit 765ea8eb authored by Sachini  Gamalathge's avatar Sachini Gamalathge

Add .gitlab-ci.yml

parent 014a99b1
Pipeline #9075 passed with stage
in 1 minute and 7 seconds
deploy:
image: debian:10
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
script:
- ssh -o StrictHostKeyChecking=no root@13.80.108.121 "cd /srv/deployment_docs_accelerator/shimmercat-qs-docs; sudo -u shimmercat -H git pull https://${USERNAME}:${PASSWORD}@gitlab.zunzun.se/public-items/shimmercat-qs-docs.git"
- ssh -o StrictHostKeyChecking=no root@13.80.108.121 "cd /srv/deployment_docs_accelerator/shimmercat-qs-docs; sudo -u shimmercat ./deploy.sh"
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