Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Tecnonucleous
Tecnonucleous Bot
Commits
b4c203be
Commit
b4c203be
authored
Oct 30, 2019
by
Daniel Pérez Fernández
🕶
Browse files
Test CI 2
parent
149dd593
Pipeline
#92544487
failed with stage
in 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
No files found.
.gitlab-ci.yml
View file @
b4c203be
...
...
@@ -15,10 +15,10 @@ deploy:
# Within before_script what we are doing is creating and adding ssh key, also we are disabling command line to ask for password. 'StrictHostKeyChecking no'
before_script
:
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
mkdir -p ~/.ssh
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$PRIVATE_KEY" | base64 -d)
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
script
:
-
ssh-add <(echo "$PRIVATE_KEY" | base64 -d)
-
ssh -o StrictHostKeyChecking=no "$SSH_USERNAME"@"$SERVER_IP" -p "$SERVER_PORT" "cd ${WORK_DIR}; git init; git clone -b ${BRANCH} ${REPO};"
\ No newline at end of file
Write
Preview
Markdown
is supported
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