Skip to content

Commit

Permalink
Merge pull request #20 from kubescape/bump
Browse files Browse the repository at this point in the history
update to go 1.23 and base image to debian12
  • Loading branch information
matthyx committed Aug 21, 2024
2 parents b3e6ec3 + 17e0509 commit c27bf8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-created.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,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
2 changes: 1 addition & 1 deletion .github/workflows/pr-merged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
CGO_ENABLED: 0
GO111MODULE: "on"
BUILD_PLATFORM: linux/amd64,linux/arm64
GO_VERSION: "1.22"
GO_VERSION: "1.23"
REQUIRED_TESTS: '[]'
COSIGN: true
HELM_E2E_TEST: true
Expand Down
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -9,7 +9,7 @@ RUN --mount=target=. \
--mount=type=cache,target=/go/pkg \
GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/prometheus-exporter .

FROM gcr.io/distroless/static-debian11:nonroot
FROM gcr.io/distroless/static-debian12:nonroot

USER nonroot
WORKDIR /home/nonroot/
Expand Down

0 comments on commit c27bf8e

Please sign in to comment.