forked from VIDA-NYU/reproserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
30 lines (26 loc) · 843 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
image: "python:3"
services:
- docker:dind
stages:
- codecheck
- deploy
flake8:
stage: codecheck
before_script:
- pip install flake8
script:
- flake8 --ignore=E731 dodo.py common/common builder/builder runner/runner web/web
make_images:
stage: deploy
when: manual
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
- pip install doit
- curl -Lo /tmp/docker.tgz https://get.docker.com/builds/Linux/x86_64/docker-17.05.0-ce.tgz && tar -xf /tmp/docker.tgz -C /usr/local && rm /tmp/docker.tgz
- "export PATH=\"/usr/local/docker:$PATH\""
- export DOCKER_HOST=docker
script:
- doit -v 2 build
- docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
- doit -v 2 push registry="$REGISTRY_URL" tag="$(git describe --always --tags)"