32 lines
506 B
YAML
32 lines
506 B
YAML
image: docker:latest
|
|
services:
|
|
- docker:dind
|
|
|
|
before_script:
|
|
- apk add --no-cache python3
|
|
- pip3 install -r app/requirements.txt
|
|
|
|
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
|