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 <simon.dudley@consensys.net>
pull/5666/head
Simon Dudley 1 year ago committed by GitHub
parent b6ad54026d
commit d81abd66bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      build.gradle

@ -870,7 +870,7 @@ task manifestDockerRelease {
archs.forEach { arch -> targets += "'${variantImage}-${arch}' " } archs.forEach { arch -> targets += "'${variantImage}-${arch}' " }
exec { exec {
def cmd = "docker manifest create '${variantImage}' ${targets}" def cmd = "docker manifest create '${variantImage}' ${targets} --amend"
println "Executing '${cmd}'" println "Executing '${cmd}'"
executable "sh" executable "sh"
args "-c", cmd args "-c", cmd
@ -886,7 +886,7 @@ task manifestDockerRelease {
exec { exec {
def targets = "" def targets = ""
archs.forEach { arch -> targets += "'${baseTag}-${arch}' " } archs.forEach { arch -> targets += "'${baseTag}-${arch}' " }
def cmd = "docker manifest create '${baseTag}' ${targets}" def cmd = "docker manifest create '${baseTag}' ${targets} --amend"
println "Executing '${cmd}'" println "Executing '${cmd}'"
executable "sh" executable "sh"
args "-c", cmd args "-c", cmd

Loading…
Cancel
Save