ci: Add Docker build check to catch Dockerfile issues early

- Add docker-build job that runs on every push/PR
- Builds only amd64 platform for speed (vs multi-platform in release)
- Uses GitHub Actions cache for faster builds
- Prevents Dockerfile issues from reaching release workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Till Wegmueller 2026-01-06 19:17:52 +01:00
parent 1fc229f582
commit 782a319164
No known key found for this signature in database

View file

@ -73,6 +73,27 @@ jobs:
- name: Run tests - name: Run tests
run: cargo nextest run --verbose run: cargo nextest run --verbose
docker-build:
name: Docker Build Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image (amd64)
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: false
tags: barycenter:ci-test
cache-from: type=gha,scope=ci-docker-amd64
cache-to: type=gha,mode=max,scope=ci-docker-amd64
security: security:
name: Security Audit name: Security Audit
runs-on: ubuntu-latest runs-on: ubuntu-latest