Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain committed Jul 29, 2024
1 parent b3d1b7c commit f00c1f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions prow/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,21 +112,19 @@ function buildx-create() {
}

function build_images() {
SELECT_TEST="${1}"

# Build just the images needed for tests
targets="docker.operator "

# Integration tests are always running on local architecture (no cross compiling), so find out what that is.
arch="linux/amd64"
localArch="$(uname -m)"
if [[ ${localArch} == "aarch64" || ${localArch} == "arm64" ]]; then
arch="linux/arm64"
arch="linux/arm64"
fi
if [[ "${VARIANT:-default}" == "distroless" ]]; then
DOCKER_ARCHITECTURES="${arch}" DOCKER_BUILD_VARIANTS="distroless" DOCKER_TARGETS="${targets}" make dockerx.pushx
else
DOCKER_ARCHITECTURES="${arch}" DOCKER_BUILD_VARIANTS="${VARIANT:-default}" DOCKER_TARGETS="${targets}" make dockerx.pushx
DOCKER_ARCHITECTURES="${arch}" DOCKER_BUILD_VARIANTS="${VARIANT:-default}" DOCKER_TARGETS="${targets}" make dockerx.pushx
fi
}

Expand Down

0 comments on commit f00c1f0

Please sign in to comment.