.gitlab-ci.yml 338 Bytes
Newer Older
marmaduke's avatar
marmaduke committed
1 2 3 4 5
variables:
  repo: gitlab.thevirtualbrain.org:5000
  tag: docker/tvb-py3

build:
6
  stage: build
marmaduke's avatar
marmaduke committed
7 8 9 10
  tags:
    - docker
  script:
    - sudo docker build -t $repo/$tag .
marmaduke's avatar
marmaduke committed
11
    - sudo docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $repo
marmaduke's avatar
marmaduke committed
12
    - sudo docker push $repo/$tag
13 14 15 16 17 18

test:
  stage: test
  image: $repo/$tag
  script:
    - python test.py