Commit 6b9a1a6d authored by Jesper Zedlitz's avatar Jesper Zedlitz
Browse files

Merge branch 'ci' into 'master'

automatisches Stage-Deployment

See merge request !4
parents 90bccb75 b133342a
Pipeline #1591 passed with stages
in 22 seconds
image: compgen/gitbook
stages:
- build
- deploy
build:
stage: build
image: billryan/gitbook
script: "gitbook build"
artifacts:
paths:
- _book/*
deploy:staging:
stage: deploy
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- 'which rsync || ( apt-get update -y && apt-get install rsync -y )'
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- echo "$STAGING_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
script:
- rsync -rav -e 'ssh -p 22102' --exclude='.git/' --exclude='.gitlab-ci.yml' --delete-excluded _book/ gitlab-stage@www.genealogy.net:/data/docs.genealogy.net/stage/des-user/
environment: staging
only:
- master
Supports Markdown
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