diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..6276782b --- /dev/null +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file