From 8b2dc2f090c0249d7805c9be9bd00b7603dee0db Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Thu, 17 May 2018 17:42:57 +0200 Subject: [PATCH] Add variable for repo host --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2ecfe1a..a8a17eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: $CI_REGISTRY/abgabesystem/abgabesystem:latest variables: BASECODE: test_solutions + CI_REPO_HOST: ips1.ibr.cs.tu-bs.de stages: - sync @@ -15,7 +16,7 @@ before_script: - mkdir -p ~/.ssh - chmod 700 ~/.ssh - ssh-add -l - - ssh-keyscan $CI_SERVER_NAME | tee ~/.ssh/known_hosts + - ssh-keyscan $CI_REPO_HOST | tee ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts ## get API token from secret variable - cp python-gitlab.cfg $HOME/.python-gitlab.cfg