mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 21:17:54 -05:00
Fix for multi-arch docker develop and latest tags (#3816)
* fix and test docker manifest step for develop and latest tags Signed-off-by: garyschulte <garyschulte@gmail.com>
This commit is contained in:
@@ -780,19 +780,19 @@ task manifestDocker {
|
||||
def image = "${dockerImage}:${dockerBuildVersion}"
|
||||
def archs = ["arm64", "amd64"]
|
||||
def tags = ["${image}"]
|
||||
|
||||
if (project.hasProperty('branch') && project.property('branch') == 'main') {
|
||||
tags.add("${dockerImage}-develop")
|
||||
tags.add("${dockerImage}:develop")
|
||||
}
|
||||
|
||||
if (!(dockerBuildVersion ==~ /.*-SNAPSHOT/)) {
|
||||
tags.add('${dockerImage}-latest')
|
||||
tags.add('${dockerImage}-' + dockerBuildVersion.split(/\./)[0..1].join('.'))
|
||||
tags.add('${dockerImage}:latest')
|
||||
tags.add('${dockerImage}:' + dockerBuildVersion.split(/\./)[0..1].join('.'))
|
||||
}
|
||||
|
||||
doLast {
|
||||
for (baseTag in tags) {
|
||||
for (def variant in dockerVariants) {
|
||||
// Just do variant images for now, later add tags and such
|
||||
def variantImage = "${baseTag}-${variant}"
|
||||
def targets = ""
|
||||
archs.forEach { arch -> targets += "'${variantImage}-${arch}' " }
|
||||
|
||||
Reference in New Issue
Block a user