Skip to content

Commit

Permalink
Merge pull request #149 from RedHatInsights/dont-do-multiarch-builds-…
Browse files Browse the repository at this point in the history
…in-pr-checks

Switch to single arch AMD64 for pr checks
  • Loading branch information
adamrdrew committed Nov 10, 2023
2 parents 7477bd9 + baf88a0 commit ef2ce5c
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 ef2ce5c

Please sign in to comment.