cargo-dist icon indicating copy to clipboard operation
cargo-dist copied to clipboard

Support for Gitea & ForgeJo CI

Open TechnoPorg opened this issue 10 months ago • 2 comments

What?

Currently, the CI integration generated by dist only works for GitHub Actions. I would like to propose extending that support to two of the easiest-to-support, most widely used alternatives: Gitea and ForgeJo.

How?

This would require allowing non-GitHub repository URLs in Cargo.toml, and customizing the name of the CI directory. The limitation can be worked around manually at present, and provides an idea of the steps that would need to be taken to support the use case: my current workflow is to temporarily change the repository URL to an invented GitHub link, run dist init, then rename the .github directory to .gitea and change the repository URL back.

Why?

Although GitHub is by far the most widely used software forge, an increasing number of individuals and organizations are starting to use self-hosted solutions. Support for Gitea and ForgeJo is particularly low-hanging fruit, as they aim to be completely compatible with GitHub actions syntax.

TechnoPorg avatar Mar 01 '25 21:03 TechnoPorg

I'm interesting in migrating to Forgejo (specifically, codeberg), and this is definitely a thing I'd be interested in having.

zkat avatar Apr 09 '25 21:04 zkat

I'd really like to have this as well, but I'm not sure when/if I'll have the time to do it. I'd welcome a PR though!

mistydemeo avatar Jul 06 '25 21:07 mistydemeo