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:
|
2016-12-25 11:32:39 -05:00
|
|
|
- VERSION=2.4 VARIANT=
|
|
|
|
- VERSION=2.4 VARIANT=slim
|
|
|
|
- VERSION=2.4 VARIANT=alpine
|
2015-12-25 09:46:49 -05:00
|
|
|
- VERSION=2.3 VARIANT=
|
|
|
|
- VERSION=2.3 VARIANT=slim
|
2016-01-04 14:55:44 -05:00
|
|
|
- VERSION=2.3 VARIANT=alpine
|
2015-04-02 17:14:02 -04:00
|
|
|
- VERSION=2.2 VARIANT=
|
|
|
|
- VERSION=2.2 VARIANT=slim
|
2016-01-29 13:39:48 -05:00
|
|
|
- VERSION=2.2 VARIANT=alpine
|
2015-04-02 17:14:02 -04:00
|
|
|
- VERSION=2.1 VARIANT=
|
|
|
|
- VERSION=2.1 VARIANT=slim
|
2016-01-29 13:39:48 -05:00
|
|
|
- VERSION=2.1 VARIANT=alpine
|
2015-04-02 17:14:02 -04:00
|
|
|
|
|
|
|
install:
|
|
|
|
- git clone https://github.com/docker-library/official-images.git ~/official-images
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- env | sort
|
|
|
|
- cd "$VERSION"
|
|
|
|
- image="$(awk '$1 == "FROM" { print $2; exit }' onbuild/Dockerfile)${VARIANT:+-$VARIANT}"
|
|
|
|
|
|
|
|
script:
|
|
|
|
- docker build -t "$image" "${VARIANT:-.}"
|
|
|
|
- ~/official-images/test/run.sh "$image"
|
|
|
|
# the "onbuild" variant has to happen with the base variant because it's FROM it
|
|
|
|
- true && [ "$VARIANT" ] || docker build -t "${image}-onbuild" onbuild
|
|
|
|
|
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:
|