Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

workflows

Reusable GitHub Actions workflows for PurgeBot-net. All service and library repos call these via workflow_call.

Workflows

build-service.yml

Builds and pushes a Docker image to ghcr.io tagged with both latest and the commit SHA. Called on every push to main, pull request, and manual dispatch for service repos — on pull requests the Docker login/build/push steps are skipped, so only vet and tests run.

Input Description
package_name Repository / image name (e.g. gateway)

build-library.yml

Runs vet and tests for library repos (no Docker image produced).

auto-label.yaml

Labels pull requests based on the checked checkboxes in the PR body (type:bug, type:feature, etc.), adds needs:bump_common / needs:bump_database / needs:bump_locale when the PR body references a pull request in those repos, and flags uncommented local replace directives (=> ../…) in go.mod.

validate-docker.yml

Validates docker-compose.yml syntax and checks that every bare ${VAR} reference in the compose file has a corresponding entry in .env.example (references with an inline default, e.g. ${VAR:-default}, are skipped).

Usage

Reference a workflow from your repo's CI:

jobs:
    build:
        uses: PurgeBot-net/workflows/.github/workflows/build-service.yml@main
        with:
            package_name: my-service
        secrets: inherit

New repos should be created from the template, which wires this up automatically.

About

Reusable GitHub Actions workflows shared across the PurgeBot-net repos

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors