dragon-bot/.gitlab-ci.yml
2017-08-17 16:53:40 -07:00

31 lines
543 B
YAML

image: docker:latest
services:
- docker:dind
before_script:
- apk add --no-cache python3
- pip3 install pylint requests discord.py docker pybooru pylint wolframalpha
stages:
- test
- deploy
linting_python:
stage: test
script:
- pylint -E app/*.py
only:
- /.*/
tags:
- docker
build_and_push_container:
stage: deploy
script:
- docker login -u ldooks -p $DOCKER_PASSWORD
- docker build -t ldooks/dragon-bot:latest .
- docker push ldooks/dragon-bot:latest
only:
- master
tags:
- docker