[no-relnote] Define golang version in Dockefile

This change adds logic to extract the golang version from a Dockefile.
This allows us to trigger golang updates using dependabot.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2024-07-10 13:05:37 +02:00
parent d969c6f302
commit aedd3b8f04
4 changed files with 44 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ LIB_TAG := rc.2
PACKAGE_VERSION := $(LIB_VERSION)$(if $(LIB_TAG),~$(LIB_TAG))
PACKAGE_REVISION := 1
GOLANG_VERSION := 1.22.1
GOLANG_VERSION := $(shell ./hack/golang-version.sh)
BUILDIMAGE_TAG ?= devel-go$(GOLANG_VERSION)
BUILDIMAGE ?= ghcr.io/nvidia/k8s-test-infra:$(BUILDIMAGE_TAG)