diff --git a/operator/Dockerfile b/operator/Dockerfile index b412a8f..667d445 100644 --- a/operator/Dockerfile +++ b/operator/Dockerfile @@ -1,5 +1,6 @@ -# Base images are pinned by digest; bump the digest to pick up base fixes. -FROM golang:1.27@sha256:5f1b98fa02fe396ebce2a0227a0e08309e11792915b9dd2e1f71053d7e7e6666 AS builder +# Base images are pinned by digest. The builder carries the full Go version, so +# Renovate proposes Go releases only, not rebuilds of the same version. +FROM golang:1.27.4@sha256:6c84d962396dfb090cedb41e7ec9e9f979888641bb159a317a2bcb11c4f99bd5 AS builder ARG TARGETOS ARG TARGETARCH WORKDIR /workspace diff --git a/renovate.json b/renovate.json index e37917b..e9b7738 100644 --- a/renovate.json +++ b/renovate.json @@ -53,6 +53,29 @@ "digest" ] }, + { + "description": "golang is only the build stage and is pinned to a full Go version: a new digest for the same version is a rebuild of the build environment and changes nothing that ships. New Go releases still come as version updates", + "enabled": false, + "matchDatasources": [ + "docker" + ], + "matchDepNames": [ + "golang" + ], + "matchUpdateTypes": [ + "digest" + ] + }, + { + "allowedVersions": "/^1\\.27\\.\\d+$/", + "description": "Stay on Go 1.27, the go directive in operator/go.mod: propose its patch releases only. A new Go minor is a deliberate change, made by hand together with go.mod", + "matchDatasources": [ + "docker" + ], + "matchDepNames": [ + "golang" + ] + }, { "description": "Cooldown: only propose releases at least 7 days old, so yanked or compromised releases never reach a PR", "matchDatasources": [