Reusable Forgejo Actions workflows for the standard lint → test → build → publish → release lifecycle.
  • Shell 98%
  • JavaScript 1.6%
  • Just 0.3%
  • Awk 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
bot-release 9291592814
All checks were successful
ci: reusable-pipeline / CI Pipeline (push) Successful in 1m8s
chore: resume development after reusable-pipeline 8.2.3
2026-11-23 16:47:33 +00:00
.github chore: resume development after reusable-pipeline 8.2.3 2026-11-23 16:47:33 +00:00
docs fix(recipe): serialize rust coverage runs on the shared target dir 2026-11-23 10:16:33 +00:00
references chore: resume development after reusable-pipeline 8.2.3 2026-11-23 16:47:33 +00:00
scripts fix(release): release a unit when a workspace dependency it ships changes 2026-11-23 17:44:20 +01:00
tests fix(release): release a unit when a workspace dependency it ships changes 2026-11-23 17:44:20 +01:00
.editorconfig feat: adapt with farewell 2026-05-18 18:54:51 +02:00
.gitignore feat: adapt with farewell 2026-05-18 18:54:51 +02:00
AGENT.md ci: run the CI test hygiene check in just lint 2026-11-12 13:26:11 +00:00
CHANGELOG.md chore(release): reusable-pipeline 8.2.3 2026-11-23 16:47:33 +00:00
cliff.toml feat(release): run a post-release recipe and support bare tags 2026-10-28 12:59:59 +01:00
justfile ci: run the CI test hygiene check in just lint 2026-11-12 13:26:11 +00:00
LICENSE chore: align license to proprietary policy 2026-06-15 10:06:27 +02:00
mise.toml fix(deps): update dependency bun to v1.4.5 2026-11-20 09:26:05 +00:00
README.md chore: resume development after reusable-pipeline 8.2.3 2026-11-23 16:47:33 +00:00
renovate.json feat(release): run a post-release recipe and support bare tags 2026-10-28 12:59:59 +01:00
repo-toolkit.json chore: trim forge topics to four 2026-07-30 13:08:00 +02:00

cjournois/reusable-pipeline

Proprietary — Copyright (c) 2026 cjournois. All rights reserved. SPDX: UNLICENSED. See LICENSE for terms.

Reusable Forgejo Actions workflows shared across cjournois repos. Caller repos copy a small trigger file per unit and get the lint → test → build → publish → release flow. The publish target is derived from the unit's own files (unit facts):

Profile The unit has Publish
Package a package.json without "private": true, or a .NET project npm on tag (dotnet: release zip)
Service a Containerfile docker image on tag / [publish]
Base image a Containerfile and the caller input base_image: true docker image every push/schedule; built, not pushed, on a PR
Helm a Chart.yaml (at the root or one level down) helm chart on tag / [publish]
Check none of the above nothing — lint + test

Quick start (a service unit)

Each caller declares its toolchain in mise.toml in working_directory or a parent. The pipeline runs mise install early; tools land on PATH via shims.

jobs:
  pipeline:
    uses: cjournois/reusable-pipeline/.github/workflows/unit.yml@main
    with:
      working_directory: services/my-service   # has a Containerfile, so it is a service
    secrets: inherit

Required mise.toml:

[tools]
bun = "1.4.4"

Full input and secret tables live in docs/components/unit.md.

Migrating to v7

  • Per-unit settings move from the per-unit config file to the caller's with: (language, tag_prefix, image_name, build_context, min_coverage, skip_test, ...).
  • A base image sets base_image: true.
  • language: node is gone: Bun is the only JS runtime, use bun.
  • Secrets come only from secrets: inherit as BOT_REGISTRY_TOKEN / BOT_RELEASE_TOKEN; the registry and users from vars.REGISTRY, vars.BOT_REGISTRY_USERNAME, vars.BOT_RELEASE_USERNAME. Callers drop PERSONAL_FORGEJO_TOKEN and personal registry_username / release_username inputs, so automation runs as the bot accounts inherited from the owner.
  • quality.yml checks one unit per call: one caller job per unit, as in references/quality.yml.

Why no packages/ or services/ directory

This repo is a Forgejo Actions repo — its structure is dictated by the .github/ convention (workflows/ for reusable workflows, actions/ for the setup composite action). It produces neither packages nor deployable services.


Developer: Getting Started

Requirements

  • Forgejo Actions (or compatible reusable workflow host)
  • Org secrets BOT_REGISTRY_TOKEN, BOT_RELEASE_TOKEN and vars REGISTRY, BOT_REGISTRY_USERNAME, BOT_RELEASE_USERNAME
  • just — command runner
  • mise — toolchain manager (pins shellcheck, actionlint, bats)

Commands

Command Purpose
just lint shellcheck (scripts) + the test hygiene CI runs (hygiene.sh tests) + actionlint (workflows)
just test bats test suite
just bump <version> Pin self-refs @main → @<version> (run by the release workflow)
just post-release <version> Put self-refs back on @main (run by the release workflow)

Maintainer: Troubleshooting

  • Secrets missing. Callers pass secrets: inherit; BOT_REGISTRY_TOKEN and BOT_RELEASE_TOKEN are both required on the publish path (check units need neither).
  • Wrong artifact path. Override build_artifact_path when the build emits something other than dist/.
  • Private registry 401. Set private_scopes and ensure the token has read:package. For k8s runners with internal URLs, the pipeline writes auth for both internal and external hosts automatically.
  • Containerfile needs sibling packages. Set build_context: . so BuildKit can see files outside working_directory.
  • Tag not triggering publish. Confirm the tag matches <tag prefix>-<semver> (the prefix is the directory name unless tag_prefix overrides it); runs with mismatched prefixes skip on purpose.