-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
46 lines (40 loc) · 918 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
image: $CI_REGISTRY_IMAGE
stages:
- docker
- style
docker:
stage: docker
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/docker
services:
- $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/docker:dind
tags:
- dind
- privileged
variables:
TAG: "$CI_REGISTRY_IMAGE"
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker pull $TAG || true
- docker build --pull --cache-from $TAG --tag $TAG --file .Dockerfile .
- docker push $TAG
black:
stage: style
allow_failure: true
script:
- black --diff --check .
isort:
stage: style
allow_failure: true
script:
- isort --diff --check .
pylint:
stage: style
allow_failure: true
script:
- pylint $(find -type f -name "*.py")
mypy:
stage: style
allow_failure: true
script:
- mypy --ignore-missing-imports --install-types --non-interactive nsfarm