kaf icon indicating copy to clipboard operation
kaf copied to clipboard

Add GitHub Action to Build and Publish Docker Image on Release

Open asadarafat opened this issue 8 months ago • 1 comments

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 kaf binary using the upstream godownloader script
  • Installs useful CLI tools such as jq, yq, tar, zip, and bash
  • Runs the image as a non-root admin user to align with container security best practices

The resulting image will be published under: ghcr.io/<user>/<repo>:<version> and :latest

asadarafat avatar May 07 '25 13:05 asadarafat