ci: fixed the key?

This commit is contained in:
silver 2023-07-26 23:35:58 +01:00
parent f4bc8ca6f4
commit e8f9f14dc5

View file

@ -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