Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e4e63718 authored by root's avatar root
Browse files

yaml up

parent df6e53ae
No related branches found
No related tags found
No related merge requests found
Pipeline #30768 failed
......@@ -36,16 +36,20 @@ pages:
deploy_QA:
stage: deploy
environment:
name: Staging
#environment:
# name: Staging
# url: "$QA_URL"
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh-add <(echo "$DEPLOYMENT_PRIVATE_KEY")
- apt-get install rsync
script:
- ssh-add <(echo "$DEPLOYMENT_PRIVATE_KEY")
- ssh -o StrictHostKeyChecking=no root@"$QA_SERVER" 'rm -rf /var/www/headwork1/*'
- scp -P22 -r . ubuntu@"$QA_SERVER":/var/www/headwork1
- ssh -p22 root@druid-garden.irisa.fr "mkdir -p /var/www/headwork1/_tmp
- rsync -rav -e ssh --exclude='.git/' --exclude='.gitlab-ci.yml' --delete-excluded ./ root@druid-garden.irisa.fr:/var/www/headwork1/_tmp
- ssh -p22 root@druid-garden.irisa.fr "mv var/www/headwork1/ var/www/headwork1/_old && var/www/headwork1/_tmp /html/wp-content/themes/head"
- ssh -p22 root@druid-garden.irisa.fr "rm -rf var/www/headwork1/_old"
only:
- build_doc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment