Add variable for repo host
This commit is contained in:
parent
9c3f2afd1c
commit
8b2dc2f090
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ image: $CI_REGISTRY/abgabesystem/abgabesystem:latest
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
BASECODE: test_solutions
|
BASECODE: test_solutions
|
||||||
|
CI_REPO_HOST: ips1.ibr.cs.tu-bs.de
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- sync
|
- sync
|
||||||
|
@ -15,7 +16,7 @@ before_script:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
- ssh-add -l
|
- 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
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
## get API token from secret variable
|
## get API token from secret variable
|
||||||
- cp python-gitlab.cfg $HOME/.python-gitlab.cfg
|
- cp python-gitlab.cfg $HOME/.python-gitlab.cfg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue