2015-04-02 17:14:02 -04:00
|
|
|
language: bash
|
2015-11-20 12:50:25 -05:00
|
|
|
services: docker
|
2015-04-02 17:14:02 -04:00
|
|
|
|
|
|
|
env:
|
2017-12-25 21:42:18 -05:00
|
|
|
- VERSION=2.5 VARIANT=stretch
|
|
|
|
- VERSION=2.5 VARIANT=stretch/slim
|
|
|
|
- VERSION=2.5 VARIANT=alpine3.7
|
2017-08-04 15:41:04 -04:00
|
|
|
- VERSION=2.4 VARIANT=stretch
|
|
|
|
- VERSION=2.4 VARIANT=stretch/slim
|
2017-07-31 19:48:09 -04:00
|
|
|
- VERSION=2.4 VARIANT=jessie
|
|
|
|
- VERSION=2.4 VARIANT=jessie/slim
|
2017-12-07 06:22:34 -05:00
|
|
|
- VERSION=2.4 VARIANT=alpine3.7
|
2017-08-04 15:42:25 -04:00
|
|
|
- VERSION=2.4 VARIANT=alpine3.6
|
2017-07-31 19:48:09 -04:00
|
|
|
- VERSION=2.4 VARIANT=alpine3.4
|
2017-10-25 14:12:34 -04:00
|
|
|
- VERSION=2.3 VARIANT=stretch
|
|
|
|
- VERSION=2.3 VARIANT=stretch/slim
|
2017-07-31 19:48:09 -04:00
|
|
|
- VERSION=2.3 VARIANT=jessie
|
|
|
|
- VERSION=2.3 VARIANT=jessie/slim
|
|
|
|
- VERSION=2.3 VARIANT=alpine3.4
|
|
|
|
- VERSION=2.2 VARIANT=jessie
|
|
|
|
- VERSION=2.2 VARIANT=jessie/slim
|
|
|
|
- VERSION=2.2 VARIANT=alpine3.4
|
2015-04-02 17:14:02 -04:00
|
|
|
|
|
|
|
install:
|
2016-12-28 06:43:54 -05:00
|
|
|
- git clone --depth 1 https://github.com/docker-library/official-images.git ~/official-images
|
2015-04-02 17:14:02 -04:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- env | sort
|
2017-07-31 19:48:09 -04:00
|
|
|
- cd "$VERSION/$VARIANT"
|
|
|
|
- slash='/'; image="ruby:${VERSION}-${VARIANT//$slash/-}"
|
2015-04-02 17:14:02 -04:00
|
|
|
|
|
|
|
script:
|
2017-07-31 19:48:09 -04:00
|
|
|
- |
|
|
|
|
(
|
|
|
|
set -Eeuo pipefail
|
|
|
|
set -x
|
|
|
|
travis_retry docker build -t "$image" .
|
|
|
|
~/official-images/test/run.sh "$image"
|
|
|
|
if [ -d onbuild ]; then
|
|
|
|
onbuildFrom="$(awk 'toupper($1) == "FROM" { print $2; exit }' onbuild/Dockerfile)"
|
|
|
|
docker tag "$image" "$onbuildFrom"
|
|
|
|
docker build -t "$image-onbuild" onbuild
|
|
|
|
~/official-images/test/run.sh "$image-onbuild"
|
|
|
|
fi
|
|
|
|
)
|
2015-04-02 17:14:02 -04:00
|
|
|
|
2015-08-07 19:32:27 -04:00
|
|
|
after_script:
|
|
|
|
- docker images
|
|
|
|
|
2015-04-02 17:14:02 -04:00
|
|
|
# vim:set et ts=2 sw=2:
|