ci: fixed the key?
This commit is contained in:
parent
f4bc8ca6f4
commit
e8f9f14dc5
1 changed files with 2 additions and 1 deletions
|
@ -13,8 +13,8 @@ update:
|
|||
stage: flake
|
||||
# from https://forum.gitlab.com/t/git-push-from-inside-a-gitlab-runner/30554/5
|
||||
before_script:
|
||||
- eval `ssh-agent -s`
|
||||
# set teh ssh key for the commit
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "${CI_KEY}" | tr -d '\r' | ssh-add - > /dev/null
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
|
@ -49,6 +49,7 @@ deploy:
|
|||
stage: deploy
|
||||
before_script:
|
||||
# setup ssh key
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$DEPLOY_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
|
|
Loading…
Reference in a new issue