From cd04c953c097a9dfc4fe55d1d959503762590fba Mon Sep 17 00:00:00 2001 From: Matthias Bertschy Date: Wed, 21 Aug 2024 14:51:19 +0200 Subject: [PATCH] update to go 1.23 and base image to debian12 Signed-off-by: Matthias Bertschy --- .github/workflows/pr-created.yaml | 2 +- .github/workflows/pr-merged.yaml | 2 +- build/Dockerfile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-created.yaml b/.github/workflows/pr-created.yaml index 5f8ec6e54..a038570d8 100644 --- a/.github/workflows/pr-created.yaml +++ b/.github/workflows/pr-created.yaml @@ -16,5 +16,5 @@ jobs: uses: kubescape/workflows/.github/workflows/incluster-comp-pr-created.yaml@main with: CGO_ENABLED: 0 - GO_VERSION: "1.22" + GO_VERSION: "1.23" secrets: inherit diff --git a/.github/workflows/pr-merged.yaml b/.github/workflows/pr-merged.yaml index 8eef12ed4..52d7c98f8 100644 --- a/.github/workflows/pr-merged.yaml +++ b/.github/workflows/pr-merged.yaml @@ -19,7 +19,7 @@ jobs: CGO_ENABLED: 0 GO111MODULE: "on" BUILD_PLATFORM: linux/amd64,linux/arm64 - GO_VERSION: "1.22" + GO_VERSION: "1.23" REQUIRED_TESTS: '[ "relevantCVEs", "relevancy_enabled_stop_sniffing", diff --git a/build/Dockerfile b/build/Dockerfile index 174f5a6d8..a1aeee3a2 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM golang:1.22-bullseye AS builder +FROM --platform=$BUILDPLATFORM golang:1.23-bookworm AS builder ENV GO111MODULE=on CGO_ENABLED=0 WORKDIR /work @@ -9,7 +9,7 @@ RUN --mount=target=. \ --mount=type=cache,target=/go/pkg \ GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/storage . -FROM gcr.io/distroless/static-debian11:nonroot +FROM gcr.io/distroless/static-debian12:nonroot COPY --from=builder /out/storage /usr/bin/storage