Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.

Commit f04763d

Browse files
committed
Initial import
1 parent bc7a72c commit f04763d

File tree

4 files changed

+675
-0
lines changed

4 files changed

+675
-0
lines changed

.gitlab-ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
variables:
2+
DOCKER_DRIVER: overlay2
3+
4+
stages:
5+
- lint
6+
- build
7+
8+
services:
9+
- docker:dind
10+
11+
pylint:
12+
image: python:latest
13+
stage: lint
14+
script:
15+
- pip install prometheus_client pylint requests
16+
- pylint --rcfile=.pylintrc *.py
17+
18+
build:
19+
image: docker:latest
20+
stage: build
21+
except:
22+
- master
23+
before_script:
24+
- export IMAGE_TAG=${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}
25+
script:
26+
- docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
27+
- docker build -f Dockerfile -t ${IMAGE_TAG} .
28+
- docker push ${IMAGE_TAG}

0 commit comments

Comments
 (0)