Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ab0027
Maui Builds
Commits
388c6aee
Commit
388c6aee
authored
Apr 21, 2022
by
probal31
Browse files
Add ssh key as file in gitlab settings
parent
6493da40
Pipeline
#5765
failed with stages
in 14 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
388c6aee
...
...
@@ -42,7 +42,7 @@ cache:
-
echo "Configure ssh agent"
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
ssh-add
<(echo "
$SSH_PRIVATE_KEY
")
-
ssh-add $SSH_PRIVATE_KEY
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment