1
0
Fork 0

Add deploy key

This commit is contained in:
Dimitar Nestorov 2022-05-12 18:49:53 +03:00
parent 726a307bb0
commit bbdfcf6795
No known key found for this signature in database
GPG key ID: 5632FE643A8B5AAE
3 changed files with 12 additions and 7 deletions

View file

@ -1,6 +1,17 @@
language: python language: python
git: git:
depth: false 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: python:
- "3.6" - "3.6"
script: script:

View file

@ -75,9 +75,8 @@ push_changes () {
return 1 return 1
fi 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"; echo "Failed to add origin";
return 1
fi fi
if ! git push origin master --quiet >/dev/null 2>&1; then if ! git push origin master --quiet >/dev/null 2>&1; then
@ -85,11 +84,6 @@ push_changes () {
return 1 return 1
fi fi
if ! git remote rm origin >/dev/null 2>&1; then
echo "Failed to remove origin"
return 1
fi
echo "Done" echo "Done"
} }

BIN
github_deploy_key.enc Normal file

Binary file not shown.