Skip to content

Commit

Permalink
Added v22, bumped versions and disabled arm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mex committed Oct 31, 2024
1 parent d988760 commit 4f67d7f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
set -eux

NODE_STABLE="20"
NODE_VERSIONS=${NODE_VERSIONS:="20.15.1 18.20.4"}
NODE_VERSIONS=${NODE_VERSIONS:="22.11.0 20.18.0 18.20.4"}
YARN_VERSION=${YARN_VERSION:="1.22.19"}
NPM_VERSION=${NPM_VERSION:="10.8.1"}
NPM_VERSION=${NPM_VERSION:="10.9.0"}
# Disabled arm builds for now as they're only used locally
BUILD_PLATFORMS=${BUILD_PLATFORMS:='linux/amd64 linux/arm64'}
# BUILD_PLATFORMS=${BUILD_PLATFORMS:='linux/amd64 linux/arm64'}

# External variables
PROJECT_ID=${PROJECT_ID:-}
Expand Down Expand Up @@ -58,10 +60,11 @@ for NODE_VERSION in $NODE_VERSIONS; do
docker buildx build --platform="${PLATFORM}" --progress=plain --target=builder --load --tag="europe-west1-docker.pkg.dev/connectedcars-build/node-builder/${BRANCH_NAME}:${NODE_VERSION}" ${DOCKER_NODE_BUILD_ARGS} .
docker buildx build --platform="${PLATFORM}" --progress=plain --target=fat-base --load --tag="europe-west1-docker.pkg.dev/connectedcars-build/node-fat-base/${BRANCH_NAME}:${NODE_VERSION}" ${DOCKER_NODE_BUILD_ARGS} .

echo "Building test image with old docker build for node $NODE_VERSION for $PLATFORM"
DOCKER_BUILDKIT=0 docker build --platform="${PLATFORM}" --tag="test:${NODE_VERSION}" --build-arg=NODE_VERSION="${NODE_VERSION}" --build-arg=BRANCH_NAME="${BRANCH_NAME}" --build-arg=NPM_TOKEN="${NPM_TOKEN}" -f test/Dockerfile.old test/
echo "Running test image for node $NODE_VERSION for $PLATFORM"
docker run --platform="${PLATFORM}" "test:${NODE_VERSION}"
# These builds are no longer necessary since we use buildx
# echo "Building test image with old docker build for node $NODE_VERSION for $PLATFORM"
# DOCKER_BUILDKIT=0 docker build --platform="${PLATFORM}" --tag="test:${NODE_VERSION}" --build-arg=NODE_VERSION="${NODE_VERSION}" --build-arg=BRANCH_NAME="${BRANCH_NAME}" --build-arg=NPM_TOKEN="${NPM_TOKEN}" -f test/Dockerfile.old test/
# echo "Running test image for node $NODE_VERSION for $PLATFORM"
# docker run --platform="${PLATFORM}" "test:${NODE_VERSION}"

echo "Building test image with buildx for node $NODE_VERSION for $PLATFORM"
# For some reason the multi arch builder does not have access to the
Expand Down

0 comments on commit 4f67d7f

Please sign in to comment.