diff options
author | lovetox <philipp@hoerist.com> | 2022-07-30 00:02:42 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2022-07-30 00:04:43 +0300 |
commit | f5d7ee23ae37cf658c15a1049bdc9dcc5dc9c99a (patch) | |
tree | 8bf41b839ce0ab95adeecd7641db56ca9f9c1a6a /.ci | |
parent | 54d4c9f8a326b96ef116a01e72429b84533cce77 (diff) |
ci: Move git setup into script
Diffstat (limited to '.ci')
-rwxr-xr-x | .ci/prepare_git.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.ci/prepare_git.sh b/.ci/prepare_git.sh new file mode 100755 index 000000000..8399de06d --- /dev/null +++ b/.ci/prepare_git.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +eval $(ssh-agent -s) +echo "$2" | tr -d '\r' | ssh-add - > /dev/null +mkdir -p ~/.ssh +chmod 700 ~/.ssh +ssh-keyscan "$1" >> ~/.ssh/known_hosts +git config --global user.email "$CI_GIT_USER_EMAIL" +git config --global user.name "$CI_GIT_USER_USERNAME" |