From ac5e9af5e02ecfa8e86fe6fee563bc86aac8303b Mon Sep 17 00:00:00 2001 From: Matilda-Clerke Date: Mon, 2 Sep 2024 12:28:46 +1000 Subject: [PATCH] Set docker VCS_REF back to a 7 char hash (#7551) Signed-off-by: Matilda Clerke --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 75471c17de..f9ff1e8012 100644 --- a/build.gradle +++ b/build.gradle @@ -819,7 +819,7 @@ task distDocker { dockerPlatform = "--platform ${project.getProperty('docker-platform')}" println "Building for platform ${project.getProperty('docker-platform')}" } - def gitDetails = getGitCommitDetails() + def gitDetails = getGitCommitDetails(7) executable shell workingDir dockerBuildDir args "-c", "docker build ${dockerPlatform} --build-arg BUILD_DATE=${buildTime()} --build-arg VERSION=${dockerBuildVersion} --build-arg VCS_REF=${gitDetails.hash} -t ${image} ."