|
|
||
|---|---|---|
| .forgejo/workflows | ||
| .gitignore | ||
| README.md | ||
forgejo-template-app
Starter template for new repos hosted on git.prevatt.cloud. Every project
created from this template is wired into the CI Notify hub on day
one — no copy-paste from another repo, no forgotten webhook.
What's in the box
.forgejo/workflows/ci.yml— a starter CI workflow with a placeholderverifyjob and aNotify CI hubstep that posts every run's outcome tohttps://n8n.prevatt.cloud/webhook/hydra-ci-notify.
The hub workflow (CI Notify in n8n, id XWWhVmJqqKpBr92Q):
- Sends a push notification via ntfy (topic
cion success/cancel,alertson failure). - Creates a Slack channel
ci-<repo-name>if one doesn't exist. - Auto-invites the primary user to the channel on first creation.
- Posts a formatted status message to the channel.
How to use this template
- Create a new repo on
git.prevatt.cloudand pick this repo as the template (toggle "Make Repository a Template" must be on here — already set). - Open
.forgejo/workflows/ci.ymland replace the Placeholder step with your real build / test / lint steps. Leave the Notify step at the end of the job; theif: always()clause is what reports failures. - Push — the first run will create the per-repo Slack channel and invite you.
Adding build & publish
If the project ships container images, copy the build-and-push job from
dprevatt/Fixins (.forgejo/workflows/build-and-publish.yml). It already
handles the buildx-driver and PACKAGES_TOKEN quirks specific to the
Forgejo Actions + Podman runner setup.
Why a fully-qualified uses: URL
Forgejo's DEFAULT_ACTIONS_URL on this instance is set to github, which
resolves bare uses: org/repo@ref against github.com (so things like
actions/checkout@v4 keep working as expected). To reference an action
that lives on git.prevatt.cloud, write the full URL:
uses: https://git.prevatt.cloud/dprevatt/ci-actions/notify@main
This was validated end-to-end against Forgejo 15.0.2 / act_runner 12.10.1.