diff --git a/tekton/tasks/buildah/0.8.0/buildah.yaml b/tekton/tasks/buildah/0.8.0/buildah.yaml index 03cb78cf3..7bc201c7a 100644 --- a/tekton/tasks/buildah/0.8.0/buildah.yaml +++ b/tekton/tasks/buildah/0.8.0/buildah.yaml @@ -106,6 +106,10 @@ spec: [ "$(workspaces.sslcertdir.bound)" = "true" ] && CERT_DIR_FLAG="--cert-dir=$(workspaces.sslcertdir.path)" [ "$(workspaces.dockerconfig.bound)" = "true" ] && DOCKER_CONFIG="$(workspaces.dockerconfig.path)" && export DOCKER_CONFIG + # Resolve the IMAGE param into a shell variable so string operations + # like ${IMAGE%:*} work correctly. + IMAGE="$(params.IMAGE)" + # Detect if multi-arch mode is enabled (IMAGE_REPOSITORIES is non-empty) MULTI_ARCH=false if [ -n "$(params.IMAGE_REPOSITORIES)" ]; then