Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated test to build only linux/amd64. #63

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions tests/bats/_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,13 @@ setup() {
fi
# LCOV_EXCL_END

if [ "$(uname -m)" = "arm64" ]; then
export DOCKER_DEFAULT_PLATFORM=linux/amd64
fi

if [ -n "${DOCKER_DEFAULT_PLATFORM-}" ]; then
step "Using ${DOCKER_DEFAULT_PLATFORM} platform architecture."
fi
export DOCKER_DEFAULT_PLATFORM="${DOCKER_DEFAULT_PLATFORM:-linux/amd64}"
step "Using ${DOCKER_DEFAULT_PLATFORM} platform architecture."

# Due to a limitation in buildx, we are building for a single platform for these tests.
# Due to a limitation in buildx driver to build multi-platform images in some
# OSes (like MacOS), we are building for a single platform by default.
export BUILDX_PLATFORMS="${DOCKER_DEFAULT_PLATFORM:-linux/amd64}"
step "Building for ${BUILDX_PLATFORMS} platforms."
export DOCKER_BUILDKIT=1

export TEST_DOCKER_TAG_PREFIX="bats-test-"
Expand Down