commit c6923c7d09545c1651580671cdf9569e071805ae
parent a51a7165dcca53dbf60a4de1825cbb1331b613a2
Author: David Eisinger <[email protected]>
Date: Fri, 1 Nov 2024 00:22:17 -0400
post progress
Diffstat:
1 file changed, 48 insertions(+), 22 deletions(-)
diff --git a/content/journal/migrating-from-github-to-sourcehut/index.md b/content/journal/migrating-from-github-to-sourcehut/index.md
@@ -3,34 +3,62 @@ title: "Migrating from Github to Sourcehut"
date: 2024-10-31T16:05:04-04:00
draft: false
references:
-- 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
- 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
---
-* Why?
- * GH/MS kind of lame
- * Sales people
- * AI
- * This is my place to do things just so
- * Git is decentralized/open source; GitHub is centralized/closed source
- * I like and follow DD (maybe not)
- * Tim Harek uses it
-* Stuff to know
- * No actions marketplace
- * `&` doesn't work
- * Secrets go in files, not environment variables
- * Shared config file
- * Disable logging
+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 or similar
- * [Cryptocurrency is an abject disaster][1]
+ * 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 [email protected]:~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
---
@@ -38,5 +66,3 @@ references:
* <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>
-
-[1]: https://drewdevault.com/2021/04/26/Cryptocurrency-is-a-disaster.html