From 16908e486bccae5dc8b82c70511634a2affc5432 Mon Sep 17 00:00:00 2001 From: Nicolas-Peiffer <102670102+Nicolas-Peiffer@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:39:03 +0200 Subject: [PATCH] Set precise version for cosign and ko matching go1.22 in installation Signed-off-by: Nicolas-Peiffer <102670102+Nicolas-Peiffer@users.noreply.github.com> --- ...e.goreleaser-ko-cosign-trivy-syft-x86-arm64-non-root-usr | 6 ++++-- ...rfile.goreleaser-ko-cosign-trivy-syft-x86-arm64-root-usr | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Containerfile.goreleaser-ko-cosign-trivy-syft-x86-arm64-non-root-usr b/Containerfile.goreleaser-ko-cosign-trivy-syft-x86-arm64-non-root-usr index d78d276..ea8de72 100644 --- a/Containerfile.goreleaser-ko-cosign-trivy-syft-x86-arm64-non-root-usr +++ b/Containerfile.goreleaser-ko-cosign-trivy-syft-x86-arm64-non-root-usr @@ -65,10 +65,12 @@ RUN apt-get update && apt-get install -y \ FROM builder-base as buidler-goreleaser ARG GORELEASER_VERSION +ARG COSIGN_VERSION +ARG KO_VERSION RUN go install github.com/goreleaser/goreleaser/v2@v$GORELEASER_VERSION \ - && go install github.com/sigstore/cosign/v2/cmd/cosign@latest \ - && go install github.com/google/ko@latest + && go install github.com/sigstore/cosign/v2/cmd/cosign@v$COSIGN_VERSION \ + && go install github.com/google/ko@$KO_VERSION #==============================================================================# # installing trivy diff --git a/Containerfile.goreleaser-ko-cosign-trivy-syft-x86-arm64-root-usr b/Containerfile.goreleaser-ko-cosign-trivy-syft-x86-arm64-root-usr index 39f84c7..a34f97e 100644 --- a/Containerfile.goreleaser-ko-cosign-trivy-syft-x86-arm64-root-usr +++ b/Containerfile.goreleaser-ko-cosign-trivy-syft-x86-arm64-root-usr @@ -64,10 +64,12 @@ RUN apt-get update && apt-get install -y \ FROM builder-base as buidler-goreleaser ARG GORELEASER_VERSION +ARG COSIGN_VERSION +ARG KO_VERSION RUN go install github.com/goreleaser/goreleaser/v2@v$GORELEASER_VERSION \ - && go install github.com/sigstore/cosign/v2/cmd/cosign@latest \ - && go install github.com/google/ko@latest + && go install github.com/sigstore/cosign/v2/cmd/cosign@v$COSIGN_VERSION \ + && go install github.com/google/ko@$KO_VERSION #==============================================================================# # installing trivy