Adding pipeline.yml file

This commit is contained in:
Luke Robles 2017-08-17 16:21:08 -07:00
parent 41f0b30818
commit 0f3415d6a0

34
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,34 @@
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 dragon-bot:latest .
only:
- master
pushing_docker_container:
stage: deploy
script:
- docker push ldooks/dragon-bot:latest
only:
- master