feat: add reusable docker build, test, and publish workflows #4

Open
opened 2026-07-10 07:14:11 +00:00 by tsieprawski · 0 comments
Owner

Research from #1 identified docker image build logic as a strong reusable workflow candidate.

Representative examples:

  • docker-services/.forgejo/workflows/build.yaml
  • docker-services/.forgejo/workflows/publish-on-demand.yaml

Observed repeated concerns:

  • package registry login with docker login
  • deriving image names and tags from repo and commit SHA
  • matrix builds for multiple Dockerfiles/products
  • optional image tests before publish
  • publish-on-demand flows

Proposed scope:

  • reusable workflow for registry login and authenticated build context setup
  • reusable workflow for matrix image build with configurable Dockerfile/product inputs
  • optional image test step hooks
  • optional publish path for dispatch or tagged release use

Goal:
Turn the docker-services workflow logic into reusable Forgejo building blocks for other repos.

Research from #1 identified docker image build logic as a strong reusable workflow candidate. Representative examples: - docker-services/.forgejo/workflows/build.yaml - docker-services/.forgejo/workflows/publish-on-demand.yaml Observed repeated concerns: - package registry login with docker login - deriving image names and tags from repo and commit SHA - matrix builds for multiple Dockerfiles/products - optional image tests before publish - publish-on-demand flows Proposed scope: - reusable workflow for registry login and authenticated build context setup - reusable workflow for matrix image build with configurable Dockerfile/product inputs - optional image test step hooks - optional publish path for dispatch or tagged release use Goal: Turn the docker-services workflow logic into reusable Forgejo building blocks for other repos.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tsieprawski/forgejo-actions#4
No description provided.