Skip to content

Commit

Permalink
use image from main in test for cross dind test
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Jul 8, 2022
1 parent f6e67ce commit 018f166
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ jobs:
run: ./ci/test-cross-image.sh
env:
TARGET: 'aarch64-unknown-linux-gnu'
IMAGE: 'ghcr.io/cross-rs/cross/aarch64-unknown-linux-gnu:main'
shell: bash

- name: Login to GitHub Container Registry
Expand Down
9 changes: 8 additions & 1 deletion ci/test-cross-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ set -eo pipefail
if [[ -z "${TARGET}" ]]; then
export TARGET="aarch64-unknown-linux-gnu"
fi

if [[ "${IMAGE}" ]]; then
export "CROSS_TARGET_${TARGET//-/_}_IMAGE"="${IMAGE}"
fi

if [[ -z "${CROSS_TARGET_CROSS_IMAGE}" ]]; then
CROSS_TARGET_CROSS_IMAGE="ghcr.io/cross-rs/cross:main"
fi


main() {
docker run --rm -e TARGET \

docker run --rm -e TARGET -e "CROSS_TARGET_${TARGET}_IMAGE" \
-v /var/run/docker.sock:/var/run/docker.sock \
"${CROSS_TARGET_CROSS_IMAGE}" sh -c '
#!/usr/bin/env sh
Expand Down

0 comments on commit 018f166

Please sign in to comment.