Skip to content

Commit 85e3b5d

Browse files
committed
Run binfmt installation
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
1 parent bcf4237 commit 85e3b5d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

hack/common.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,21 @@ set -euo pipefail
44

55
export TAG=${TAG:-$(git rev-parse HEAD)}
66

7-
export KO_DOCKER_REPO="${KO_DOCKER_REPO:-kind.local}"
8-
export TRANSFORM_JSONATA_IMAGE_WITH_TAG="${KO_DOCKER_REPO}/transform-jsonata:${TAG}"
7+
export TRANSFORM_JSONATA_IMAGE_WITH_TAG="${KO_DOCKER_REPO:-kind.local}/transform-jsonata:${TAG}"
98

109
[[ ! -v REPO_ROOT_DIR ]] && REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
1110
readonly REPO_ROOT_DIR
1211

1312
export TRANSFORM_JSONATA_DIR="${REPO_ROOT_DIR}/transform-jsonata"
1413

14+
export IS_PROW_INTERNAL=${IS_PROW:-0}
15+
1516
function build_transform_jsonata_image() {
1617

18+
if (( IS_PROW_INTERNAL )); then
19+
docker run --privileged --rm tonistiigi/binfmt --install all binfmt
20+
fi
21+
1722
docker info
1823
docker buildx ls
1924

test/presubmit-tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# shellcheck disable=SC1090
44
source "$(go run knative.dev/hack/cmd/script presubmit-tests.sh)"
5-
source "$(go run knative.dev/hack/cmd/script infra-library.sh)"
65

76
function build_tests() {
87
header "Running build tests"

0 commit comments

Comments
 (0)