Skip to content

Commit

Permalink
Run binfmt installation
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
  • Loading branch information
pierDipi committed Feb 18, 2025
1 parent bcf4237 commit 397daf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions hack/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ set -euo pipefail

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

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

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

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


function build_transform_jsonata_image() {

if (( ${IS_PROW:-0} )); then
docker run --privileged --rm tonistiigi/binfmt --install all binfmt
fi

docker info
docker buildx ls

Expand Down
1 change: 0 additions & 1 deletion test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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

function build_tests() {
header "Running build tests"
Expand Down

0 comments on commit 397daf0

Please sign in to comment.