browser-asmjs: Filter images when finding tagged version

This commit is contained in:
Matt McCormick 2019-01-06 23:05:25 -05:00
parent 45ccf40b58
commit 0ef049fecd
No known key found for this signature in database
GPG Key ID: 45DA982347954FA5

View File

@ -73,7 +73,7 @@ jobs:
command: | command: |
docker load -i ~/docker/base.tar docker load -i ~/docker/base.tar
make browser-asmjs make browser-asmjs
tagged=$(docker images -q -f 'since=dockcross/browser-asmjs:latest' --format '{{.Repository}}:{{.Tag}}') tagged=$(docker images -q -f 'since=dockcross/browser-asmjs:latest' --format '{{.Repository}}:{{.Tag}}' | grep browser-asmjs)
docker save -o ~/docker/browser-asmjs.tar dockcross/browser-asmjs:latest $tagged docker save -o ~/docker/browser-asmjs.tar dockcross/browser-asmjs:latest $tagged
- run: - run:
name: browser-asmjs test name: browser-asmjs test
@ -401,7 +401,7 @@ jobs:
if [ "${CIRCLE_BRANCH}" == "master" ]; then if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push dockcross/browser-asmjs:latest docker push dockcross/browser-asmjs:latest
tagged=$(docker images -q -f 'since=dockcross/browser-asmjs:latest' --format '{{.Repository}}:{{.Tag}}') tagged=$(docker images -q -f 'since=dockcross/browser-asmjs:latest' --format '{{.Repository}}:{{.Tag}}' | grep browser-asmjs)
docker push $tagged docker push $tagged
fi fi
- restore_cache: - restore_cache: