Add keyscan for known hosts.
This commit is contained in:
@ -7,20 +7,25 @@ before_script:
|
|||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null
|
- echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null
|
||||||
|
|
||||||
|
# Ensure known hosts exists and is populated
|
||||||
|
mkdir ~/.ssh && chmod 700 ~/.ssh
|
||||||
|
ssh-keyscan -p 2224 gitlab.jamma.life >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
push_github:
|
push_github:
|
||||||
type: deploy
|
type: deploy
|
||||||
environment:
|
environment:
|
||||||
name: github
|
name: github
|
||||||
url: github.com/jmhbnz/tooling
|
url: github.com/jmhbnz/tooling
|
||||||
script:
|
script:
|
||||||
- git status
|
# Output git status
|
||||||
- git remote -v
|
- git checkout master && git status
|
||||||
- git checkout master
|
|
||||||
# Add a new remote for github
|
# Add a new remote for github
|
||||||
- git remote add github git@github.com:jmhbnz/tooling.git || true
|
- git remote add github git@github.com:jmhbnz/tooling.git || true
|
||||||
|
|
||||||
# Push to the new remote
|
# Push to the new remote
|
||||||
- git push github master
|
- git push github master
|
||||||
|
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- master
|
- master
|
||||||
|
|||||||
Reference in New Issue
Block a user