Skip to content
Snippets Groups Projects
Commit 0b3ef2e7 authored by Timo Millenaar's avatar Timo Millenaar
Browse files

Merge branch 'decode_ssh_key' into 'master'

Decode ssh key from bas64 such that we can store the key as a masked variable

See merge request !20
parents 621df0e8 dbb4b3f8
Branches
No related tags found
1 merge request!20Decode ssh key from bas64 such that we can store the key as a masked variable
Pipeline #102363 failed
...@@ -4,7 +4,7 @@ stages: ...@@ -4,7 +4,7 @@ stages:
before_script: before_script:
- apk update && apk add git - apk update && apk add git
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_PROJECT" | tr -d '\r' | ssh-add - - echo "$SSH_PRIVATE_KEY_PROJECT" | base64 -d | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh/ && ssh-keyscan git.astron.nl > ~/.ssh/known_hosts - mkdir -p ~/.ssh/ && ssh-keyscan git.astron.nl > ~/.ssh/known_hosts
- git checkout "$CI_COMMIT_REF_NAME" # make sure the branch is checked out - git checkout "$CI_COMMIT_REF_NAME" # make sure the branch is checked out
- git config user.email $GITLAB_USER_EMAIL - git config user.email $GITLAB_USER_EMAIL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment