Testing
The test-docker.yml
workflow validates the image on every push to main and on every pull request.
It:
- Lints the Dockerfile with Hadolint
- Builds the image using Docker Buildx
- Runs the container to verify it starts correctly
Because the image is built and run on every pull request, a change that breaks the build or the entrypoint is caught before it is merged.
On a merge to main, once these checks pass, the same workflow also publishes a
canary image. See Publishing for details.