mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 03:47:33 +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"
|
packages: "write"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
@@ -26,13 +38,14 @@ jobs:
|
|||||||
- name: Set up persistent Buildx builder
|
- name: Set up persistent Buildx builder
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver: docker
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: ls -la
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: docker/bake-action@v6
|
uses: docker/bake-action@v6
|
||||||
env:
|
env:
|
||||||
@@ -45,5 +58,3 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
docker-bake.hcl
|
docker-bake.hcl
|
||||||
docker-bake-ci.hcl
|
docker-bake-ci.hcl
|
||||||
- run: ls -la
|
|
||||||
if: always()
|
|
||||||
|
Reference in New Issue
Block a user