2015-03-13 01:08:05 +08:00
|
|
|
language: bash
|
2015-11-21 01:50:24 +08:00
|
|
|
services: docker
|
2015-03-13 01:08:05 +08:00
|
|
|
|
|
|
|
env:
|
2016-07-02 01:30:37 +08:00
|
|
|
- VERSION=3.6 VARIANT=
|
|
|
|
- VERSION=3.6 VARIANT=slim
|
|
|
|
- VERSION=3.6 VARIANT=alpine
|
2015-07-18 01:17:57 +08:00
|
|
|
- VERSION=3.5 VARIANT=
|
|
|
|
- VERSION=3.5 VARIANT=slim
|
2015-12-29 19:13:25 +08:00
|
|
|
- VERSION=3.5 VARIANT=alpine
|
2015-03-13 01:08:05 +08:00
|
|
|
- VERSION=3.4 VARIANT=
|
2015-04-03 04:30:53 +08:00
|
|
|
- VERSION=3.4 VARIANT=slim
|
2016-01-15 06:34:45 +08:00
|
|
|
- VERSION=3.4 VARIANT=alpine
|
2015-04-03 04:30:53 +08:00
|
|
|
- VERSION=3.4 VARIANT=wheezy
|
2015-03-13 01:08:05 +08:00
|
|
|
- VERSION=3.3 VARIANT=
|
2015-04-03 04:30:53 +08:00
|
|
|
- VERSION=3.3 VARIANT=slim
|
2016-01-15 06:34:45 +08:00
|
|
|
- VERSION=3.3 VARIANT=alpine
|
2015-04-03 04:30:53 +08:00
|
|
|
- VERSION=3.3 VARIANT=wheezy
|
2015-03-13 01:08:05 +08:00
|
|
|
- VERSION=2.7 VARIANT=
|
2015-04-03 04:30:53 +08:00
|
|
|
- VERSION=2.7 VARIANT=slim
|
2016-01-12 23:58:22 +08:00
|
|
|
- VERSION=2.7 VARIANT=alpine
|
2015-04-03 04:30:53 +08:00
|
|
|
- VERSION=2.7 VARIANT=wheezy
|
2015-03-13 01:08:05 +08: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-08 07:32:23 +08:00
|
|
|
after_script:
|
|
|
|
- docker images
|
|
|
|
|
2015-03-13 01:08:05 +08:00
|
|
|
# vim:set et ts=2 sw=2:
|