No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jelle van Mossel 0a5c133d5d
All checks were successful
CI / Test shell-tests action (push) Successful in 16s
CI / Lint Workflows (push) Successful in 20s
fix: use --use-signing-config=false instead of --tlog-upload=false
Cosign v3.0.5 doesn't allow --tlog-upload=false with the default
--use-signing-config. Disable signing config to use legacy mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 22:06:33 +01:00
.forgejo/workflows feat!: convert reusable workflows to composite actions 2026-01-18 23:15:32 +01:00
actions fix: use --use-signing-config=false instead of --tlog-upload=false 2026-03-28 22:06:33 +01:00
tests fix: update test assertions for new actions structure 2026-01-18 23:22:10 +01:00
.gitignore chore: add .gitignore, update README, remove .claude from tracking 2026-01-18 23:29:19 +01:00
CLAUDE.md feat!: convert reusable workflows to composite actions 2026-01-18 23:15:32 +01:00
README.md chore: add .gitignore, update README, remove .claude from tracking 2026-01-18 23:29:19 +01:00

cicd

Reusable CI/CD composite actions for Forgejo Actions.

Actions

shell-tests

Runs shell-based test scripts with optional apt dependencies.

name: Test

on:
  push:
    branches: [main, master]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: public/cicd/actions/shell-tests@main
        with:
          test_scripts: |
            ./tests/test_one.sh
            ./tests/test_two.sh
          dependencies: jq bc
Input Required Default Description
test_scripts yes - Newline-separated test scripts to run
dependencies no jq Space-separated apt packages to install

docker-release

Builds and pushes Docker images with semantic-release versioning. Only builds when conventional commits trigger a version bump.

name: Build

on:
  push:
    branches: [main, master]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: public/cicd/actions/docker-release@main
        with:
          zot_user: ${{ secrets.ZOT_USER }}
          zot_token: ${{ secrets.ZOT_TOKEN }}
          gitea_token: ${{ github.token }}
Input Required Default Description
zot_user yes - Registry username
zot_token yes - Registry password/token
gitea_token yes - Forgejo token (use ${{ github.token }})
registry no registry.godmiljaar.nl Container registry URL
platforms no linux/amd64 Target platforms (e.g., linux/amd64,linux/arm64)
context no . Docker build context

Security

Secrets handling

  • Never commit secrets - use Forgejo's repository/organization secrets
  • Secrets are passed as explicit action inputs, not inherited
  • The gitea_token should always be ${{ github.token }} (auto-generated per workflow run)

Required repository secrets

For docker-release:

  • ZOT_USER - Registry username
  • ZOT_TOKEN - Registry password or token

Pre-commit recommendations

Consider adding secret scanning to your repos. Tools like gitleaks or detect-secrets can catch accidental commits.

Why composite actions instead of reusable workflows?

Forgejo's workflow_call (reusable workflows) has a bug where runs-on labels aren't passed from called workflows, causing jobs to hang indefinitely. Composite actions work reliably.

Key differences from reusable workflows:

  • Caller provides runs-on (not inherited)
  • Caller must checkout before using the action
  • Secrets passed as explicit inputs (not secrets: inherit)

Contributing

Uses Conventional Commits:

  • feat: → minor version bump
  • fix: → patch version bump
  • feat!: or BREAKING CHANGE: → major version bump