dragon-bot/.gitlab-ci.yml

30 lines
510 B
YAML

image: docker:latest
services:
- docker:dind
before_script:
- apk add --no-cache python3
stages:
- linting
- deploy
linting:
stage: linting
before_script:
- pip3 install pylint
script:
- pylint -E app/*.py
build_and_push_container:
- pip3 install -r app/requirements.txt
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