feat(build): Integration test on both CPU architectures

This commit is contained in:
Vincent Ambo 2019-11-09 14:30:01 +00:00 committed by Vincent Ambo
parent 1d6898a7cc
commit 9a8abeff97

View file

@ -55,4 +55,25 @@ script:
echo -n "."
sleep 1
done
- docker run --rm localhost:8080/hello hello
# Pull and run an image of the current CPU architecture
- |
case $(uname -m) in
x86_64)
docker run --rm localhost:8080/hello hello
;;
aarch64)
docker run --rm localhost:8080/arm64/hello hello
;;
esac
# Pull an image of the opposite CPU architecture (but without running it)
- |
case $(uname -m) in
x86_64)
docker pull localhost:8080/arm64/hello
;;
aarch64)
docker pull localhost:8080/hello
;;
esac