Skip to content

Commit

Permalink
ci: git mirroring
Browse files Browse the repository at this point in the history
  • Loading branch information
da-moon committed Feb 5, 2022
0 parents commit 0e6042f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
image: alpine/edge
secrets:
- 911a32c9-a8b4-4d41-9fe0-18df25523b2f
sources:
- https://git.sr.ht/~havi/telescope-toggleterm.nvim
tasks:
- validate-gh-fingerprint-and-config-ssh: |
tmp_dir=$(mktemp -d -p $HOME)
ssh-keyscan -t rsa github.com > $tmp_dir/github_host
ssh-keygen -lf $tmp_dir/github_host > $tmp_dir/github_fingerprint
grep -R "nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8" $tmp_dir/github_fingerprint
cat $tmp_dir/github_host >> ~/.ssh/known_hosts
rm -rf $tmp_dir
echo -e "Host github.com\n IdentityFile ~/.ssh/id_rsa\n IdentitiesOnly yes\n BatchMode yes\n" >> ~/.ssh/config
- mirror-to-github: |
cd ~/telescope-toggleterm.nvim
git remote add github [email protected]:da-moon/telescope-toggleterm.nvim
git push --force --prune github +refs/remotes/origin/*:refs/heads/* +refs/tags/*:refs/tags/* master
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Year havi <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit 0e6042f

Please sign in to comment.