Commit 3005ac43 authored by Jérémie Lanceleur's avatar Jérémie Lanceleur
Browse files

update makefile init

parent 32f5b359
Pipeline #3168 skipped with stages
......@@ -52,3 +52,23 @@ deploy :
when: manual
only:
- master
deploy-rync-files-without-restart-server:
stage: deploy
before_script:
- apt-get update -qq
- apt-get install -y -qq openssh-client rsync
# ajout du serveur comme host connu
- mkdir ~/.ssh
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
# ajout SSH_PRIVATE_KEY dans agent store
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
script:
# execution du script update.sh sur le serveur host pour relancer via docker-compose le conteneur avec la nouvelle image site-incubateur-pe
- rsync -avz --no-perms --no-owner --no-group --exclude "postal/config/local/postal.yml.j2" -e 'ssh' $CI_PROJECT_DIR/docker-compose/baggy-docker-compose/ $HOST_SERVER_USER@$HOST_SERVER_IP:/home/docker/baggy
when: manual
only:
- master
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