34 lines
475 B
YAML
34 lines
475 B
YAML
image: python:3.6.2-alpine3.6
|
|
services:
|
|
- dragon-bot
|
|
|
|
before_script:
|
|
- pip install pylint
|
|
|
|
stages:
|
|
- test
|
|
- build
|
|
- deploy
|
|
|
|
linting_python:
|
|
stage: test
|
|
script:
|
|
- pylint 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 |