Commit 4be476e
committed
Improve Docker CI for PRs and add manual release workflow
Refactor the Docker image workflow to better support pull requests,
forks, and multi-architecture builds.
Changes:
- add pull_request support for Docker image builds
- refactor duplicated amd64/arm64 jobs into a matrix build
- keep DockerHub login/push disabled for PR builds
- keep manifest creation only for non-PR builds
- derive image namespace from DOCKERHUB_NAMESPACE or repository owner
- add Grype scanning for the base image
- upload SARIF results only for non-PR builds
- print scan SARIF in PR builds instead of uploading it
- keep the existing per-arch slim image flow
- add Buildx cache configuration
Also add a separate manual Release workflow that:
- takes an explicit VERSION input
- creates and pushes a lightweight git tag
- creates the GitHub release
- dispatches the Docker workflow for that tag via workflow_dispatch
This keeps PR behavior fork-friendly, adds image vulnerability scanning,
and makes releases explicit without requiring Gradle or computed versioning.1 parent ab5d307 commit 4be476e
3 files changed
Lines changed: 229 additions & 197 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments