Merge pull request #284 from thewtex/circleci-browser-asmjs-filter

browser-asmjs: Filter images when finding tagged version
This commit is contained in:
Matt McCormick 2019-01-07 09:11:20 -05:00 committed by GitHub
commit 6c36c469b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ jobs:
command: |
docker load -i ~/docker/base.tar
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
- run:
name: browser-asmjs test
@ -401,7 +401,7 @@ jobs:
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
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
fi
- restore_cache: