From 22ff0e215a934f52ce0036c156c70bc83ec59471 Mon Sep 17 00:00:00 2001 From: Unai Arrien Date: Fri, 22 Nov 2024 13:44:13 +0100 Subject: [PATCH] Stratio CICD integration --- Dockerfile | 4 ++-- Jenkinsfile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e684257b..9abb9b74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.20.10 as builder +FROM golang:1.22.9-bookworm as builder WORKDIR /workspace # Copy the Go Modules manifests @@ -32,7 +32,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH GO111MODULE=on go build \ # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM alpine:3.17 +FROM alpine:3.20 # Upgrade packages for vulnerabilities RUN apk update && apk upgrade diff --git a/Jenkinsfile b/Jenkinsfile index 87e760e5..d6c4ea7f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,7 @@ hose { EMAIL = 'eos@stratio.com' + BUILDTOOL_IMAGE = 'golang:1.22' BUILDTOOL = 'make' DEVTIMEOUT = 30 ANCHORE_POLICY = "production"