sourcehut-to-github-mirror.yml
· 489 B · YAML
Eredeti
# Mirror Sourcehut repositories to GitHub
image: alpine/latest
sources:
- https://git.sr.ht/~username/repository
secrets:
- big-long-uuid # this is your public SSH key, add it to GitHub at https://github.com/settings/keys and Sourcehut at https://builds.sr.ht/secrets
tasks:
- mirror-to-github: |
cd repository
git remote add github git@github.com:username/repository.git
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
git push github main
| 1 | # Mirror Sourcehut repositories to GitHub |
| 2 | |
| 3 | image: alpine/latest |
| 4 | sources: |
| 5 | - https://git.sr.ht/~username/repository |
| 6 | secrets: |
| 7 | - big-long-uuid # this is your public SSH key, add it to GitHub at https://github.com/settings/keys and Sourcehut at https://builds.sr.ht/secrets |
| 8 | tasks: |
| 9 | - mirror-to-github: | |
| 10 | cd repository |
| 11 | git remote add github git@github.com:username/repository.git |
| 12 | ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts |
| 13 | git push github main |