Add deploy key
This commit is contained in:
parent
726a307bb0
commit
bbdfcf6795
3 changed files with 12 additions and 7 deletions
11
.travis.yml
11
.travis.yml
|
@ -1,6 +1,17 @@
|
|||
language: python
|
||||
git:
|
||||
depth: false
|
||||
before_install:
|
||||
- >-
|
||||
openssl aes-256-cbc
|
||||
-K $encrypted_8ebb1ef83f64_key
|
||||
-iv $encrypted_8ebb1ef83f64_iv
|
||||
-in github_deploy_key.enc
|
||||
-out github_deploy_key
|
||||
-d
|
||||
- chmod 600 github_deploy_key
|
||||
- eval $(ssh-agent -s)
|
||||
- ssh-add github_deploy_key
|
||||
python:
|
||||
- "3.6"
|
||||
script:
|
||||
|
|
|
@ -75,9 +75,8 @@ push_changes () {
|
|||
return 1
|
||||
fi
|
||||
|
||||
if ! git remote add origin "https://${GITHUB_OAUTH_TOKEN}:x-oauth-basic@github.com/dimitarnestorov/nix-google-fonts-overlay.git" >/dev/null 2>&1; then
|
||||
if ! git remote add origin "git@github.com:dimitarnestorov/nix-google-fonts-overlay.git" >/dev/null 2>&1; then
|
||||
echo "Failed to add origin";
|
||||
return 1
|
||||
fi
|
||||
|
||||
if ! git push origin master --quiet >/dev/null 2>&1; then
|
||||
|
@ -85,11 +84,6 @@ push_changes () {
|
|||
return 1
|
||||
fi
|
||||
|
||||
if ! git remote rm origin >/dev/null 2>&1; then
|
||||
echo "Failed to remove origin"
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo "Done"
|
||||
}
|
||||
|
||||
|
|
BIN
github_deploy_key.enc
Normal file
BIN
github_deploy_key.enc
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue