Commit 35b30933 authored by Stewart Williams's avatar Stewart Williams
Browse files

Use docker-in-docker for CI

parent cb9553ae
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
# GitLab CI in conjunction with GitLab Runner can use Docker Engine to test and build any application.
# Docker, when used with GitLab CI, runs each job in a separate and isolated container using the predefined image that is set up in .gitlab-ci.yml.
# In this case we use the latest python docker image to build and test this project.
image: registry.gitlab.com/ska-telescope/ska-docker/ska-python:latest
image: registry.gitlab.com/ska-telescope/ska-docker/tango-builder:latest

services:
- docker:dind

# cache is used to specify a list of files and directories which should be cached between jobs. You can only use paths that are within the project workspace.
# If cache is defined outside the scope of jobs, it means it is set globally and all jobs will use that definition
@@ -18,8 +21,6 @@ before_script:
# In this case we have only the test job which produce an artifacts (it must be placed into a directory called "public")
# It is also specified that only the master branch will be subject of this job.
test:
  # tags:
    # - docker-machine
  script:
  - make build
  - make test