🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
CI: add a build-only Docker image check
Omega (QA)78b38a3fdee9
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.ymlnew file mode 100644index 0000000..32a6036--- /dev/null+++ b/.github/workflows/docker-build.yml@@ -0,0 +1,34 @@+name: Docker Build++on:+ pull_request:+ push:+ branches: [main]++jobs:+ docker-build:+ runs-on: ubuntu-latest++ steps:+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7++ - name: Set up Buildx+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1++ # Build only: the image is never pushed anywhere. The point is to+ # catch a broken Dockerfile in CI instead of on release day, and+ # to keep the layer cache warm so both this check and future+ # builds stay fast.+ - name: Build image (amd64, no push)+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0+ with:+ context: .+ platforms: linux/amd64+ push: false+ load: true+ tags: warracker:ci+ cache-from: type=gha+ cache-to: type=gha,mode=max++ - name: Report image size+ run: docker images warracker:ci --format '{{.Repository}}:{{.Tag}} {{.Size}}'