circle.yml: Simplify reusing 'display_images' target

This commit is contained in:
Jean-Christophe Fillion-Robin 2016-09-25 23:55:17 -04:00
parent 8a4e0845da
commit 79938b37e5
No known key found for this signature in database
GPG Key ID: 15C1A2812F958BD3

View File

@ -14,32 +14,13 @@ dependencies:
- docker info
- if [[ -e ~/docker/base.tar ]]; then docker load -i ~/docker/base.tar; fi
- docker pull dockcross/base
- if [[ -e ~/docker/android-arm.tar ]]; then docker load -i ~/docker/android-arm.tar; fi
- docker pull dockcross/android-arm
- if [[ -e ~/docker/browser-asmjs.tar ]]; then docker load -i ~/docker/browser-asmjs.tar; fi
- docker pull dockcross/browser-asmjs
- if [[ -e ~/docker/linux-arm64.tar ]]; then docker load -i ~/docker/linux-arm64.tar; fi
- docker pull dockcross/linux-arm64
- if [[ -e ~/docker/linux-armv5.tar ]]; then docker load -i ~/docker/linux-armv5.tar; fi
- docker pull dockcross/linux-armv5
- if [[ -e ~/docker/linux-armv6.tar ]]; then docker load -i ~/docker/linux-armv6.tar; fi
- docker pull dockcross/linux-armv6
- if [[ -e ~/docker/linux-armv7.tar ]]; then docker load -i ~/docker/linux-armv7.tar; fi
- docker pull dockcross/linux-armv7
- if [[ -e ~/docker/linux-ppc64le.tar ]]; then docker load -i ~/docker/linux-ppc64le.tar; fi
- docker pull dockcross/linux-ppc64le
- if [[ -e ~/docker/linux-x64.tar ]]; then docker load -i ~/docker/linux-x64.tar; fi
- docker pull dockcross/linux-x64
- if [[ -e ~/docker/linux-x86.tar ]]; then docker load -i ~/docker/linux-x86.tar; fi
- docker pull dockcross/linux-x86
- if [[ -e ~/docker/manylinux-x64.tar ]]; then docker load -i ~/docker/manylinux-x64.tar; fi
- docker pull dockcross/manylinux-x64
- if [[ -e ~/docker/manylinux-x86.tar ]]; then docker load -i ~/docker/manylinux-x86.tar; fi
- docker pull dockcross/manylinux-x86
- if [[ -e ~/docker/windows-x64.tar ]]; then docker load -i ~/docker/windows-x64.tar; fi
- docker pull dockcross/windows-x64
- if [[ -e ~/docker/windows-x86.tar ]]; then docker load -i ~/docker/windows-x86.tar; fi
- docker pull dockcross/windows-x86
- |
for image in $(make display_images); do
if [[ -e ~/docker/$image.tar ]]; then
echo "Loading $image.tar"
docker load -i ~/docker/$image.tar;
fi
docker pull dockcross/$image
test:
override:
@ -80,16 +61,4 @@ deployment:
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push dockcross/base
- docker push dockcross/android-arm
- docker push dockcross/browser-asmjs
- docker push dockcross/linux-arm64
- docker push dockcross/linux-armv5
- docker push dockcross/linux-armv6
- docker push dockcross/linux-armv7
- docker push dockcross/linux-ppc64le
- docker push dockcross/linux-x64
- docker push dockcross/linux-x86
- docker push dockcross/manylinux-x64
- docker push dockcross/manylinux-x86
- docker push dockcross/windows-x64
- docker push dockcross/windows-x86
- for image in $(make display_images); do docker push dockcross/$image; done