Update .gitlab-ci.yml file

This commit is contained in:
Slava
2023-08-28 23:51:21 +00:00
parent 801b06c41f
commit a45ff79f16

View File

@@ -25,7 +25,7 @@ prepare_job:
## without extra base64 encoding. ## without extra base64 encoding.
## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556 ## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556
## ##
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - echo "$SSH_PRIVATE_KEY"
## ##
## Create the SSH directory and give it the right permissions ## Create the SSH directory and give it the right permissions
## ##
@@ -35,7 +35,7 @@ prepare_job:
## Assuming you created the SSH_SERVER_HOST_KEYS variable, uncomment the ## Assuming you created the SSH_SERVER_HOST_KEYS variable, uncomment the
## following two lines. ## following two lines.
## ##
- echo "$SSH_SERVER_HOST_KEYS" - echo "$SSH_SERVER_HOST_KEYS" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
- git config --global user.email 'bot@hzdr.de' - git config --global user.email 'bot@hzdr.de'
- git config --global user.name 'Bot' - git config --global user.name 'Bot'