buildx driver docker

This commit is contained in:
Elio Bischof
2025-06-17 16:23:56 +02:00
parent b219ccb4e2
commit 1d74a704cc

View File

@@ -11,6 +11,18 @@ jobs:
packages: "write"
steps:
- uses: actions/checkout@v4
- name: Set up Docker
# We enable the containerd image store, so the buildx driver of type docker can cache-export build layers.
# The driver docker-container has many cache misses, as it stores its state in an ephemeral docker volume.
# This state is only populated after the first build, but the docker build layer cache depends on it.
uses: docker/setup-docker-action@v4
with:
daemon-config: |
{
"features": {
"containerd-snapshotter": true
}
}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
@@ -26,13 +38,14 @@ jobs:
- name: Set up persistent Buildx builder
id: buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: ls -la
- name: Build
uses: docker/bake-action@v6
env:
@@ -45,5 +58,3 @@ jobs:
files: |
docker-bake.hcl
docker-bake-ci.hcl
- run: ls -la
if: always()