Commit 4038b6a2 authored by Stewart Williams's avatar Stewart Williams
Browse files

Push images on successful test

parent 7a59363c
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@ cache:

# before_script is used to define the command that should be run before all jobs, including deploy jobs, but after the restoration of artifacts. 
# This can be an array or a multi-line string.
#before_script:
#  - python -V  # Print out python version for debugging
before_script:
  - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY

# The YAML file defines a set of jobs with constraints stating when they should be run.
# You can specify an unlimited number of jobs which are defined as top-level elements with an arbitrary name and always have to contain at least the script clause.
@@ -26,20 +26,15 @@ cache:
# It is also specified that only the master branch will be subject of this job.

stages:
  - build
  - test

build:
  tags:
    - docker-executor
  script:
    - make build

test:
  tags:
    - docker-executor
  script:
    - make build
    - make test
    - make push
    - mv build public
  artifacts:
    paths: