Skip to content

Unify service list between GitHub workflow and compose.yaml to avoid duplication #34

@coderabbitai

Description

@coderabbitai

Problem

Currently, service names are hard-coded in both the GitHub workflow () and the file. This creates a maintenance burden where every addition or removal of services in must be manually duplicated in the workflow file. A single discrepancy can silently break the health-check process.

Proposed Solution

Consider one of these approaches:

  1. Export the service list to a single source of truth (e.g., in the example root) and reference it from both the Compose Action and the health-check steps
  2. Generate the service array dynamically using docker compose config --services

This would ensure consistency and reduce maintenance overhead when services are added or removed.

Context

This issue was identified during code review of PR #33.

Related Links:

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions