mirror of
https://github.com/CloudNebulaProject/barycenter.git
synced 2026-04-10 13:10:42 +00:00
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:
parent
1fc229f582
commit
782a319164
1 changed files with 21 additions and 0 deletions
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
|
|
@ -73,6 +73,27 @@ jobs:
|
|||
- name: Run tests
|
||||
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:
|
||||
name: Security Audit
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue