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
Robert Chatley
rbctestapp
Commits
2397ec3e
Commit
2397ec3e
authored
Nov 04, 2021
by
Bansal, Pranav
Browse files
Update setup_push.sh
parent
94707a05
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup_push.sh
View file @
2397ec3e
...
...
@@ -21,8 +21,8 @@ fi
# TODO: skip on multiple runs
mkdir
-p
~/.ssh
echo
"
$SSH_PRIVATE_KEY
"
|
tr
-d
'\r'
|
tr
-d
'\n'
>
~/.ssh/id_rsa
echo
"
$SSH_PRIVATE_KEY
"
|
tr
-d
'\r'
>
~/.ssh/id_rsa
chmod
600 ~/.ssh/id_rsa
ssh-keyscan
-H
$ssh_port
"
$ssh_host
"
>>
~/.ssh/known_hosts
git push
$url
${
CI_COMMIT_SHA
:-
HEAD
}
:refs/heads/
${
branch
:-
master
}
$(
[
-z
"
$DISABLE_FORCE_PUSH
"
]
&&
echo
--force
)
\ No newline at end of file
git push
$url
${
CI_COMMIT_SHA
:-
HEAD
}
:refs/heads/
${
branch
:-
master
}
$(
[
-z
"
$DISABLE_FORCE_PUSH
"
]
&&
echo
--force
)
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