Skip to content

Commit

Permalink
Switch to single arch AMD64 for pr checks
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrdrew committed Nov 10, 2023
1 parent 36c4eef commit baf88a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ docker rm -f $CONTAINER_NAME-run
# This confused me for a while because pr_check_inner.sh is also copied into the pr check container at build time
# but the template_check.sh isn't. I couldn't figure out how it was sourcing it

docker buildx use multiarchbuilder
docker buildx build --platform linux/amd64,linux/arm64 -t $CONTAINER_NAME -f build/Dockerfile.pr .
docker buildx build --platform linux/amd64 -t $CONTAINER_NAME -f build/Dockerfile.pr .
docker buildx build --load -t $CONTAINER_NAME -f build/Dockerfile.pr .

docker run -i --name $CONTAINER_NAME-run -v $PWD:/workspace:ro $CONTAINER_NAME /workspace/build/pr_check_inner.sh
Expand Down

0 comments on commit baf88a0

Please sign in to comment.