Files
dockerfile-test-build/README.md
T
2026-04-30 14:55:56 +02:00

808 B

Dockerfile test build

Sample CI

name: Docker Build CI
on: [ push ]

env:
  BUILDKIT_VERSION: 'v0.29.0'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: actions/cache@v4
        with:
          path: /var/lib/buildkit
          key: ${{ runner.os }}-buildkit-${{ env.BUILDKIT_VERSION }}
      - uses: https://git.klemek.fr/klemek/dockerfile-test-build@v1
        with:
          buildkit_version: ${{ env.BUILDKIT_VERSION }}

Arguments

Name Description Default value
buildkit_version Name of Buildkit version from GitHub (required)
context Build context path .
dockerfile Name of Dockerfile if different from ./Dockerfile .