Skip to content

ci: lint the Dockerfile with hadolint before publishing images - #26

Merged
carbolymer merged 1 commit into
masterfrom
mgalazyn/feature/hadolint
Nov 26, 2026
Merged

carbolymer merged 1 commit into
masterfrom
mgalazyn/feature/hadolint

Conversation

@carbolymer

Copy link
Copy Markdown

This adds a hadolint step to container-image.yaml, so the image workflow fails on Dockerfile warnings before it builds and publishes the images. Upstream CardanoSolutions/kupo lints its Dockerfile in build.yaml, which the fork replaced with its own workflows without carrying the lint over.

The action is pinned by commit SHA to hadolint-action v3.5.0, like every other action in the fork, with failure-threshold: warning. The current Dockerfile passes hadolint 2.14.0 locally with no extra ignored rules; the existing # hadolint ignore=DL3018 in the Dockerfile covers the apk line.

This was split out of the upstream sync PR, which does not need it:

The image workflow now fails on hadolint warnings before it waits for Continuous Integration and publishes, so Dockerfile mistakes surface before a release tag is pushed.
@carbolymer
carbolymer marked this pull request as ready for review November 24, 2026 16:00
@carbolymer carbolymer self-assigned this Nov 24, 2026
@carbolymer
carbolymer merged commit c9781de into master Nov 26, 2026
7 checks passed
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.

2 participants