From 233aa04817de925da355c2b44ee05cc7ee978e9c Mon Sep 17 00:00:00 2001 From: Levin Faber Date: Thu, 9 May 2019 17:52:23 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f6804f..cb52edc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,14 +33,13 @@ build_docker_host: - eval $(ssh-agent -s) - ssh-add <(echo "${DEPLOY_ENV_KEY}") - mkdir -p ~/.ssh - - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' + - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - docker info - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script: - docker build -f Docker/Dockerfile_FE_Host -t registry.gitlab.com/fia72-dev/eva_lernsituation/frontend-serve . - docker push registry.gitlab.com/fia72-dev/eva_lernsituation/frontend-serve - ls -la Docker/config/restart-host.sh - - ssh $DEPLOY_ENV_USER@$DEPLOY_ENV_TARGET "echo ''" # Add host key - rsync --progress -av -e ssh Docker/config/restart-host.sh $DEPLOY_ENV_USER@$DEPLOY_ENV_TARGET:/home/$DEPLOY_ENV_USER/restart-host.sh - ssh $DEPLOY_ENV_USER@$DEPLOY_ENV_TARGET "./restart-host.sh" when: manual