From 68a2512a7bc2d6ae1538cc1ad596d747f2eaaa33 Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Wed, 8 Jul 2026 06:05:58 -0500 Subject: [PATCH] Sync Dockerfile version labels during git-release The git-release Makefile target updates version/version.go and version.Makefile but not the version labels in the production Dockerfiles or the version ARGs in bundle.openshift.Dockerfile. This causes them to drift out of sync after each release. Add sed commands to git-release to update: - version= labels in images/operator/Dockerfile, images/openscap/Containerfile, and images/must-gather/Containerfile - CO_OLD_VERSION and CO_NEW_VERSION ARGs in bundle.openshift.Dockerfile Co-Authored-By: Claude Opus 4.6 --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index ff8627b3b7..0ae222ae3c 100644 --- a/Makefile +++ b/Makefile @@ -730,7 +730,14 @@ git-release: fetch-git-tags package-version-to-tag changelog ## Update project f sed -i "s/\(replaces: \).*/\1$(APP_NAME).$(PREVIOUS_VERSION)/" $(BUNDLE_CSV_FILE) sed -i "s/\(.*Version = \"\).*/\1$(TAG)\"/" version/version.go sed -i "s/\(.*VERSION?=\).*/\1$(TAG)/" version.Makefile + sed -i 's/\(version=\).*/\1$(TAG)/' images/operator/Dockerfile + sed -i 's/\(version=\).*/\1$(TAG)/' images/openscap/Containerfile + sed -i 's/\(version=\).*/\1$(TAG)/' images/must-gather/Containerfile + sed -i 's/\(CO_OLD_VERSION="\).*/\1$(PREVIOUS_VERSION)"/' bundle.openshift.Dockerfile + sed -i 's/\(CO_NEW_VERSION="\).*/\1$(TAG)"/' bundle.openshift.Dockerfile git add version* bundle CHANGELOG.md config/manifests/bases + git add images/operator/Dockerfile images/openscap/Containerfile images/must-gather/Containerfile + git add bundle.openshift.Dockerfile git add "config/helm/Chart.yaml" git add "catalog/preamble.json" git restore config/manager/kustomization.yaml