mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:17:32 +00:00
buildx driver docker
This commit is contained in:
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
@@ -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()
|
||||
|
Reference in New Issue
Block a user