dragon-bot/.gitlab-ci.yml

32 lines
453 B
YAML

image: python:3.6.2-alpine3.6
before_script:
- pip install pylint
stages:
- test
- build
- deploy
linting_python:
stage: test
script:
- pylint -E app/*.py
only:
- /.*/
tags:
- docker
building_docker_container:
stage: build
script:
- docker build -t ldooks/dragon-bot:latest .
only:
- master
pushing_docker_container:
stage: deploy
script:
- docker push ldooks/dragon-bot:latest
only:
- master