Commit 46dc3bb9 authored by Derek's avatar Derek

Add .gitlab-ci.yml test

parent 7b450cd7
services: docker
env:
- VERSION=19 VARIANT=
- VERSION=19 VARIANT=slim
- VERSION=18 VARIANT=
- VERSION=18 VARIANT=slim
- VERSION=18 VARIANT=onbuild
- VERSION=17 VARIANT=
- VERSION=17 VARIANT=slim
- VERSION=R16 VARIANT=
- VERSION=R15 VARIANT=
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 --pull -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
after_script:
- docker images
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment