Skip to content

Build only changed docker directories in CI#70

Merged
luislavena merged 1 commit intomainfrom
dynamic-builds
Jan 18, 2026
Merged

Build only changed docker directories in CI#70
luislavena merged 1 commit intomainfrom
dynamic-builds

Conversation

@luislavena
Copy link
Owner

Previously, every push triggered builds for all Crystal versions even when only one version's Dockerfile changed. This wasted CI resources and slowed down feedback.

The workflow now detects which docker directories have actual changes and generates a build matrix dynamically from versions.json. When no docker files change, the build job is skipped entirely.

Manual builds remain possible via workflow_dispatch, allowing specific versions or all versions to be built on demand.

Previously, every push triggered builds for all Crystal versions even
when only one version's Dockerfile changed. This wasted CI resources
and slowed down feedback.

The workflow now detects which docker directories have actual changes
and generates a build matrix dynamically from versions.json. When no
docker files change, the build job is skipped entirely.

Manual builds remain possible via workflow_dispatch, allowing specific
versions or all versions to be built on demand.
@luislavena luislavena merged commit b8667bd into main Jan 18, 2026
2 checks passed
@luislavena luislavena deleted the dynamic-builds branch January 18, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant