Skip to content

Commit

Permalink
Don't remove images, but pull latest adoptopenjdk
Browse files Browse the repository at this point in the history
  • Loading branch information
keeganwitt committed Jun 28, 2020
1 parent ebb61f5 commit defea37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ before_install:
- env | sort
- cd "${VERSION}${VARIANT:+-$VARIANT}"
- image="gradle:${VERSION}${VARIANT:+-$VARIANT}"
- docker rmi "${image}" || true
- docker images --quiet --filter=dangling=true | xargs --no-run-if-empty docker rmi -f
- docker images --format "table {{.Repository}}:{{.Tag}}" | tail --lines=+2 | grep "openjdk" | xargs --no-run-if-empty --max-lines=1 docker pull
- docker images --format "table {{.Repository}}:{{.Tag}}" | tail --lines=+2 | grep "adoptopenjdk" | xargs --no-run-if-empty docker pull

install:
- docker build --tag "${image}" .
Expand Down

0 comments on commit defea37

Please sign in to comment.