Files
davideisinger.com/content/journal/migrating-from-github-to-sourcehut/index.md
David Eisinger c6923c7d09 post progress
2024-11-04 09:32:50 -05:00

69 lines
2.1 KiB
Markdown

---
title: "Migrating from Github to Sourcehut"
date: 2024-10-31T16:05:04-04:00
draft: false
references:
- title: "Switching to SourceHut Builds - Tim Hårek"
url: https://timharek.no/blog/switching-to-sourcehut-builds
date: 2024-11-01T03:59:37Z
file: timharek-no-becx2e.txt
- title: "Cryptocurrency is an abject disaster"
url: https://drewdevault.com/2021/04/26/Cryptocurrency-is-a-disaster.html
date: 2024-10-31T20:10:12Z
file: drewdevault-com-yuxzdw.txt
---
I've moved this site's repository from [GitHub][1] to [SourceHut][2], an alternative, open-source Git host. Why? For a few reasons ...
[1]: https://github.com/
[2]: https://sourcehut.org/
<!--more-->
### Why?
* GH/MS kind of lame
* Sales people
* AI
* Git is decentralized/open source; GitHub is centralized/closed source
* I like and follow DD (maybe not)
* [Tim Harek uses it][3]
* I'm still a happy enough GitHub user at work, but this is my place where I can be as fussy as I my heart desires.
[3]: https://timharek.no/blog/switching-to-sourcehut-builds
* I paid for it
* Happy to support independents
* Cheaper than self hosting [Gitea][4] or similar
* [Cryptocurrency is an abject disaster][5]
[4]: https://about.gitea.com/
[5]: https://drewdevault.com/2021/04/26/Cryptocurrency-is-a-disaster.html
### Stuff to know
Adding a new remote is as simple as
```sh
git remote rename origin github
git remote add origin git@git.sr.ht:~dce/davideisinger.com
git push origin main
````
But switching from GitHub Actions to SourceHut Builds took some doing.
* No actions marketplace
* `&` doesn't work
* Secrets go in files, not environment variables
* Shared config file
* https://man.sr.ht/builds.sr.ht/#build-environment
* Disable logging
* https://man.sr.ht/builds.sr.ht/#keeping-your-secrets-a-secret
---
* [Switching to SourceHut Builds - Tim Hårek](https://timharek.no/blog/switching-to-sourcehut-builds)
* <https://git.sr.ht/~timharek/timharek.no/tree/main/item/.build.yml>
* <https://git.sr.ht/~dce/mdrenum/tree/main/item/.build.yml>
* <https://git.sr.ht/~dce/davideisinger.com/tree/main/item/.build.yml>