Skip to content

Commit

Permalink
setup qemu from ecr as well
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Jun 10, 2024
1 parent 1e128e4 commit 6f0720b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linux-container-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ shift

aws ecr get-login-password | docker login 123124136734.dkr.ecr.us-east-1.amazonaws.com -u AWS --password-stdin
export DOCKER_IMAGE=123124136734.dkr.ecr.us-east-1.amazonaws.com/${IMAGE_NAME}:${BUILDER_VERSION}
docker run --env GITHUB_REF --env GITHUB_HEAD_REF --env AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY --env AWS_DEFAULT_REGION --env CXXFLAGS --env AWS_CRT_ARCH --env CTEST_PARALLEL_LEVEL --env AWS_CRT_ARCH $DOCKER_IMAGE --version=${BUILDER_VERSION} $@
docker run --env GITHUB_REF --env GITHUB_HEAD_REF --env AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY --env AWS_DEFAULT_REGION --env CXXFLAGS --env CTEST_PARALLEL_LEVEL --env AWS_CRT_ARCH $DOCKER_IMAGE --version=${BUILDER_VERSION} $@
9 changes: 9 additions & 0 deletions .github/workflows/setup-qemu-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# $1 - TARGET_ARCH

set -e
TARGET_ARCH=$1
shift

aws ecr get-login-password | docker login 123124136734.dkr.ecr.us-east-1.amazonaws.com -u AWS --password-stdin
docker run --rm --privileged aptman/qus -s -- -p $TARGET_ARCH

0 comments on commit 6f0720b

Please sign in to comment.