increse fetch depth

This commit is contained in:
Florian Forster
2025-02-19 10:20:55 +01:00
parent b2ba203599
commit 3c1894592d
3 changed files with 26 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ jobs:
group: zitadel-public
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v3
- uses: docker/bake-action@v6
with:

View File

@@ -17,7 +17,6 @@ RUN make core_build
FROM base AS build
RUN make compile_pipeline
RUN ls -la && pwd
FROM base AS lint
RUN make core_lint

View File

@@ -49,6 +49,18 @@ target "console" {
"lint" = []
"image" = ["${REGISTRY}/console:${GITHUB_SHA}"]
}[tgt]
cache-to = {
"build" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"output" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"lint" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"image" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
}[tgt]
cache-from = {
"build" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"output" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"lint" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"image" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
}[tgt]
target = tgt
}
@@ -82,6 +94,18 @@ target "core" {
"output" = []
"lint" = []
"image" = ["${REGISTRY}/zitadel:${GITHUB_SHA}"]
}[tgt]
cache-to = {
"build" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"output" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"lint" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"image" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
}[tgt]
cache-from = {
"build" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"output" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"lint" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
"image" = ["type=gha,ignore-error=true,mode=max,scope=${tgt}"]
}[tgt]
target = tgt
}