From 37e448d6c229a143f5c33a9ebdac0279de6b3968 Mon Sep 17 00:00:00 2001 From: bjoernbethge Date: Fri, 16 Jan 2026 02:40:23 +0100 Subject: [PATCH] feat: add Docker build workflow Adds automated Docker image builds using shared workflow: - Builds for CUDA applications (linux/amd64 only) - Pushes to GHCR (ghcr.io) and Docker Hub - Smart tagging: latest, semver, SHA, branch names - Automated on push to main, tags, and PRs Requires DOCKERHUB_TOKEN secret to be configured. Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/docker.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..ea146e4 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,27 @@ +name: Docker Build + +on: + push: + branches: [main] + tags: ['v*'] + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + packages: write + +jobs: + docker: + uses: bjoernbethge/workflows-shared/.github/workflows/docker-build-push.yml@main + with: + dockerfile: Dockerfile + platforms: linux/amd64 # CUDA only supports amd64 + push-dockerhub: ${{ github.event_name != 'pull_request' }} + dockerhub-username: bjoernbethge + secrets: + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}