This commit is contained in:
Florian Forster
2025-02-24 23:50:44 +01:00
parent ebcb639a50
commit 2344f2128a
2 changed files with 15 additions and 4 deletions

View File

@@ -62,7 +62,11 @@ FROM base AS lint
COPY --from=console ./ internal/api/ui/console/static
COPY .golangci.yaml ./
COPY .git/ ./.git/
RUN make core_lint
RUN golangci-lint run \
--timeout 10m \
--config ./.golangci.yaml \
--out-format=github-actions \
--concurrency=$$(getconf _NPROCESSORS_ONLN)
FROM base AS unit-test
COPY --from=console ./ internal/api/ui/console/static

View File

@@ -48,7 +48,7 @@ target "console" {
output = {
"build" = ["type=local,dest=.build/console"]
"lint" = ["type=cacheonly"]
"image" = ["type=docker"]
"image" = ["type=image"]
"generate" = ["type=local,dest=./"]
}[tgt]
tags = {
@@ -69,6 +69,13 @@ target "console" {
"image" = ["type=gha,scope=console-${tgt}"]
"generate" = ["type=gha,scope=console-${tgt}"]
}[tgt]
platforms = {
"build" = []
"lint" = []
"unit" = []
"image" = ["linux/amd64", "linux/arm64"]
"generate" = []
}[tgt]
target = tgt
}
@@ -95,14 +102,14 @@ target "core" {
"build" = ["type=local,dest=.build/core"]
"lint" = ["type=cacheonly"]
"unit" = ["type=local,dest=./.build/core"]
"image" = ["type=docker"]
"image" = ["type=image"]
"generate" = ["type=local,dest=./"]
}[tgt]
tags = {
"build" = []
"lint" = []
"unit" = []
"image" = ["${REGISTRY}/hodor:${GITHUB_SHA}"]
"image" = ["${REGISTRY}/zitadel:${GITHUB_SHA}"]
"generate" = []
}[tgt]
cache-to = {