kaf
kaf copied to clipboard
Add GitHub Action to Build and Publish Docker Image on Release
This PR introduces a GitHub Actions workflow named Build and Push Docker Image that:
- Automatically builds and publishes a Docker image to GitHub Container Registry (GHCR)
- Triggers on new releases (
release: published) and also supports manual execution (workflow_dispatch) - Dynamically generates a Dockerfile based on Red Hat UBI 8 Minimal
- Downloads the official
kafbinary using the upstream godownloader script - Installs useful CLI tools such as jq, yq, tar, zip, and bash
- Runs the image as a non-root
adminuser to align with container security best practices
The resulting image will be published under:
ghcr.io/<user>/<repo>:<version> and :latest