dragon-bot/.gitlab-ci.yml
Luke Robles b75a1402d8 Blocking pushes to master
Adding pipeline.yml file

Adding pipeline.yml file

Adding pipeline.yml file

only lint for python errors

Add all necessary python modules for linting

trying with docker in docker image

trying pipelines again

Updating docker password variable

updating build step tags

Try with build and deploy as one step

Fix paramenter

Fix runner tag

Delete bitbucket-pipelines.yml
2017-08-18 09:18:49 -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