Tag: sourcehut

  • Wow, I just created a new config for builds.sr.ht that worked first time!

    That never happens, who ever creates a CI/CD config that runs without error when first submitted?!

    Screenshot of a successful builds.sr.ht run summary card

    Admittedly, not the most complicated of configs, but I suspect using Gleam and FreeBSD helped due to their simplicity and well thought out straight forward usage patterns.

  • How to copy an entire GitHub repo to SourceHut

    Note for future self on how to successfully cleanly copy an entire git repository from GitHub to SourceHut, with all branches and tags intact.

    This is how I did it for wp-cron-pixie:

    # on sourcehut, create new repo, then ...
    git clone --bare git@github.com:ianmjones/wp-cron-pixie.git
    cd wp-cron-pixie.git/
    git branch -m master trunk # optional, rename default branch
    git push --mirror git@git.sr.ht:~ianmjones/wp-cron-pixie
    # on sourcehut, update default branch in repo's settings if not correct.
    cd ../
    rm -rf wp-cron-pixie.git
    git clone git@git.sr.ht:~ianmjones/wp-cron-pixie
    cd wp-cron-pixie/
    # Check everything is as expected ...
    git branch -a
    git tag -l
    # on github, archive old repo.