Commit 85ef6a13 authored by Dainius Simelevicius's avatar Dainius Simelevicius
Browse files

references #147: improving authentication with .yum repo

parent 45f98579
......@@ -705,6 +705,16 @@ git:
- elastic/api
- elastic/timestream
- amc13controller
before_script:
- which ssh-agent
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- ssh-add -l
- echo "Host gitlab.cern.ch" > ~/.ssh/config
- echo " HostName gitlab.cern.ch" >> ~/.ssh/config
- echo " UserKnownHostsFile /dev/null" >> ~/.ssh/config
- echo " StrictHostKeyChecking=no" >> ~/.ssh/config
- cat ~/.ssh/config
script:
- export RELEASE_NUMBER=$(echo $CI_COMMIT_REF_NAME | awk '{split($0,a,"_"); print a[2]}')
- export SNAPSHOT_DIR=$RPM_REPO_DIR/$RELEASE_NUMBER/cc7/x86_64/RPMS/
......
Supports Markdown
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