Skip to content
RogueOneEchoPublic

About

Reusable GitHub Actions workflows for Rust and Docker

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

Repository files navigation

CI

Shared GitHub Actions workflows for RogueOneEcho projects.

Calling Convention

Each consuming repo has four workflow files. The three trigger files call the local ci.yml, which in turn calls the shared workflow. This keeps repo-specific inputs (e.g. config-path) in one place.

  • ci.yml — Local wrapper that calls the shared workflow with repo-specific inputs
  • ci-on-push.yml — Runs CI on every push. Keeps the actions cache warm on main
  • ci-on-pr-approved.yml — Runs CI when a PR is approved. Gates auto-merge via branch protection
  • ci-on-pr-labeled.yml — Runs CI on demand without approving. Removes the label after
ci-on-push.yml        ──┐
ci-on-pr-approved.yml ──┼──▶ ci.yml ──▶ RogueOneEcho/ci/rust-lib.yml@v1
ci-on-pr-labeled.yml  ──┘

CI Workflows

CI for Docker-only projects. Multi-arch builds (amd64/arm64), SBOM scanning, cosign attestation, and GHCR publishing.

Used by:

Examples:

CI for Rust library crates

Used by:

Examples:

CI for Rust binary crates with optional Docker builds.

Used by:

Examples:

Release and Maintenance Workflows

Fast-forward the release branch to a tagged commit on main. Must be dispatched on the release branch so that chained CI runs against release. Validates the commit is on main, has a version tag, CI has passed, and fast-forward is possible.

Because github.token pushes don't trigger workflows, the caller must chain CI as a dependent job (see example).

Examples:

  • release.yml — Dispatch workflow that fast-forwards then runs CI

Daily check for upstream image updates via pinned ARG version.

Recommended pattern for keeping Docker images up to date. Docker Hub tags are the default source of truth; the check picks the highest semver and only bumps forward, never to an older version.

Not a reusable workflow — each repo copies and adapts the template for its specific upstream dependency.

Adopted by:

  • alloy — grafana/alloy Docker Hub tags. Tags carry a v prefix, unlike the other images
  • backup — library/alpine Docker Hub tags
  • caddy-cloudflare — library/caddy Docker Hub tags, plus the caddy-dns/cloudflare plugin via GitHub tags. The plugin is a Go module built with xcaddy, not an image, so it has no Docker Hub tag
  • preflight — library/alpine Docker Hub tags

Rulesets

CI

  • ci-main.json — Branch protection for main
  • ci-release.json — Branch protection for release. No bypass — requires CI and git-tag to pass

Docker

Apply to a repo with:

gh api repos/RogueOneEcho/{repo}/rulesets -X POST --input rulesets/{type}/{type}-{branch}.json

About

Reusable GitHub Actions workflows for Rust and Docker

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors