From d81abd66bdef47a48611b972d7a60d86ab5f5d4f Mon Sep 17 00:00:00 2001 From: Simon Dudley Date: Fri, 30 Jun 2023 14:49:39 +1000 Subject: [PATCH] Add --amend to docker manifest create to fix docker latest tag (#5661) We need to replace previous release's latest tag. Might be broken due to a recent change in the docker command implementation Signed-off-by: Simon Dudley --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 28b8f4d4a6..eeedeafb77 100644 --- a/build.gradle +++ b/build.gradle @@ -870,7 +870,7 @@ task manifestDockerRelease { archs.forEach { arch -> targets += "'${variantImage}-${arch}' " } exec { - def cmd = "docker manifest create '${variantImage}' ${targets}" + def cmd = "docker manifest create '${variantImage}' ${targets} --amend" println "Executing '${cmd}'" executable "sh" args "-c", cmd @@ -886,7 +886,7 @@ task manifestDockerRelease { exec { def targets = "" archs.forEach { arch -> targets += "'${baseTag}-${arch}' " } - def cmd = "docker manifest create '${baseTag}' ${targets}" + def cmd = "docker manifest create '${baseTag}' ${targets} --amend" println "Executing '${cmd}'" executable "sh" args "-c", cmd