Correctly suffix image names with architecture

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-05-04 17:32:42 +01:00
parent a06d888a62
commit 0267fd2348

View File

@ -66,12 +66,15 @@ def multiarch_image(
stamp = stamp,
**kwargs)
suffix = ""
if arch != "amd64":
suffix = "-%s" % arch
container_bundle(
name = "%s.%s-%s.export" % (name, os, arch),
# TODO: append arch to image name if the arch is not amd64
images = {
("{STABLE_DOCKER_REPO}/cert-manager-%s:{STABLE_APP_VERSION}" % component): ":%s.%s-%s" % (name, os, arch),
("{STABLE_DOCKER_REPO}/cert-manager-%s:{STABLE_APP_GIT_COMMIT}" % component): ":%s.%s-%s" % (name, os, arch),
("{STABLE_DOCKER_REPO}/cert-manager-%s%s:{STABLE_APP_VERSION}" % (component, suffix)): ":%s.%s-%s" % (name, os, arch),
("{STABLE_DOCKER_REPO}/cert-manager-%s%s:{STABLE_APP_GIT_COMMIT}" % (component, suffix)): ":%s.%s-%s" % (name, os, arch),
},
)