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

Commit d0dbacf

Browse files
committed
Merge branch 'add-gelf-logging' into 'latest'
Adds GELF logging See merge request docker/etherscan-exporter!2
2 parents dc413b3 + a9d3050 commit d0dbacf

File tree

6 files changed

+92
-511
lines changed

6 files changed

+92
-511
lines changed

.gitlab-ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
variables:
22
DOCKER_DRIVER: overlay2
3+
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
4+
PORT: 9308
35

46
stages:
57
- lint
@@ -12,17 +14,18 @@ pylint:
1214
image: python:latest
1315
stage: lint
1416
script:
15-
- pip install prometheus_client pylint requests
16-
- pylint --rcfile=.pylintrc *.py
17+
- curl -o .pylintrc https://tool.ix.ai/.pylintrc
18+
- pip install prometheus_client pylint requests pygelf
19+
- pylint --rcfile=.pylintrc src/*.py
1720

1821
build:
1922
image: docker:latest
2023
stage: build
21-
except:
22-
- master
23-
before_script:
24-
- export IMAGE_TAG=${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}
24+
only:
25+
- /^latest$/
26+
- tags
27+
- /(.*)-dev$/
2528
script:
2629
- docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
27-
- docker build -f Dockerfile -t ${IMAGE_TAG} .
30+
- docker build -f Dockerfile -t ${IMAGE_TAG} --build-arg PORT="${PORT}" .
2831
- docker push ${IMAGE_TAG}

0 commit comments

Comments
 (0)