Commit adc5c6a6 authored by Jamie Tanna's avatar Jamie Tanna

Pull our base image as part of CI

We should be always building against our latest base image - otherwise
we're setting ourselves up for failure, and will be running on old
images (dependent on whatever's been last pulled by the builder.
parent 63a52095
Pipeline #5944072 failed with stage
in 9 minutes and 23 seconds
......@@ -7,6 +7,7 @@ variables:
CONTAINER_TEST_IMAGE: $CONTAINER_IMAGE_URL:$CI_BUILD_REF_SLUG
CONTAINER_RELEASE_IMAGE: $CONTAINER_IMAGE_URL:latest
DOCKER_DRIVER: overlay
DOCKER_BASE_IMAGE: debian:jessie
stages:
- test
......@@ -18,6 +19,7 @@ build_image:
stage: test
script:
- docker login -u jamietanna -p $CI_BUILD_TOKEN registry.gitlab.com
- docker pull $DOCKER_BASE_IMAGE
- docker pull $CONTAINER_TEST_IMAGE || docker pull $CONTAINER_RELEASE_IMAGE
- docker build --pull --cache-from $CONTAINER_TEST_IMAGE --cache-from $CONTAINER_RELEASE_IMAGE -t $CONTAINER_TEST_IMAGE .
- docker run $CONTAINER_TEST_IMAGE bundle exec htmlproofer --only-4xx _site
......
FROM debian
FROM debian:jessie
MAINTAINER Jamie Tanna <docker@jamietanna.co.uk>
ENV DEBIAN_FRONTEND=noninteractive \
......
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