dragon-bot/.gitlab-ci.yml
2017-09-24 17:31:03 -07:00

32 lines
571 B
YAML

image: docker:latest
services:
- docker:dind
before_script:
- apk add --no-cache python3
- pip3 install pylint requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance
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