Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish-kyverno-reports-hotfix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
pkg/controllers/report/resource/watch_kinds.go \
pkg/controllers/report/resource/watch_plan_test.go
test "$(git write-tree)" = "${PATCHED_SOURCE_TREE}"
cp "${HOTFIX_PATCH}" reports-watch-plan.patch

- name: Set up Buildx container driver
uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
Expand Down Expand Up @@ -135,6 +136,7 @@ jobs:
pkg/controllers/report/resource/watch_kinds.go \
pkg/controllers/report/resource/watch_plan_test.go
test "$(git write-tree)" = "${PATCHED_SOURCE_TREE}"
cp "${HOTFIX_PATCH}" reports-watch-plan.patch

- name: Set up Buildx container driver
uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM docker.io/library/golang:1.26.9-bookworm@sha256:d9c68c2c51161e12fd77e4c6320687c9cd86e1af1e3ad6e6cd63ff970641453c AS builder
FROM docker.io/library/golang:1.27.2-bookworm@sha256:5cf287a799e6b94384bad13d16b14904c531f51ba65792237e122ce42b392f61 AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN timeout 900s go test -mod=readonly -race ./pkg/controllers/report/resource ./pkg/controllers/report/aggregate ./pkg/webhooks/resource/validation
RUN GOBIN=/usr/local/bin go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4 \
&& timeout 900s golangci-lint run --timeout=14m
# Upstream code is not ours to restyle: only lines the hotfix patch changes can fail this gate.
RUN GOBIN=/usr/local/bin go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.15.0 \
&& timeout 900s golangci-lint run --timeout=14m --new-from-patch=reports-watch-plan.patch \
./pkg/controllers/report/resource/...
ARG VERSION=unknown
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod=readonly -trimpath \
-ldflags="-s -w -X github.com/kyverno/kyverno/pkg/version.BuildVersion=${VERSION}" \
Expand Down
Loading