35 lines
756 B
YAML
35 lines
756 B
YAML
name: Docker CI
|
|
|
|
concurrency:
|
|
group: docker-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/docker.yml'
|
|
- 'pyproject.toml'
|
|
- 'uv.lock'
|
|
- 'stapler/*'
|
|
- 'Dockerfile'
|
|
|
|
env:
|
|
BUILDKIT_VERSION: 'v0.29.0'
|
|
|
|
jobs:
|
|
docker-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
- name: Set up buildkit cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: /var/lib/buildkit
|
|
key: ${{ runner.os }}-buildkit-${{ env.BUILDKIT_VERSION }}
|
|
- name: Test docker build
|
|
uses: klemek/dockerfile-test-build@v1
|
|
with:
|
|
buildkit_version: ${{ env.BUILDKIT_VERSION }}
|