commit 7030307362c26250b5cf566bb7256483564089fc
parent 2b983a3ea8696ca9aedde027aeebba19e9bb0ad3
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Thu, 26 Feb 2026 08:10:42 +0100
feat(buildahbud): add platform
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/BuildahBud.groovy b/src/BuildahBud.groovy
@@ -15,14 +15,15 @@ class BuildahBud implements Serializable {
String imgTag = 'latest',
String dockerFile = 'Dockerfile',
String imgArch = 'arm64/v8',
+ String imgPlatform = 'arm64',
String imgRegistry = 'haproxy.lan:5000',
String stageName = 'build') {
// $v can contain additional quoted strings
def argList = buildArgs.collect{ k, v -> "--build-arg ${k}=\"${v}\""}.join(' ')
def shCmd = sprintf(
- 'buildah bud --no-cache --arch=%s %s -t %s/%s:%s -f %s %s',
- imgArch, argList, imgRegistry, imgName, imgTag, dockerFile, imgContext)
+ 'buildah bud --no-cache --arch=%s --platform=%s %s -t %s/%s:%s -f %s %s',
+ imgArch, imgPlatform, argList, imgRegistry, imgName, imgTag, dockerFile, imgContext)
script.stage(stageName) {
script.echo "Building image ${imgRegistry}/${imgName}:${imgTag}..."