From 0f3415d6a07b730d797efa5debcde5eb22d58198 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Thu, 17 Aug 2017 16:21:08 -0700 Subject: [PATCH] Adding pipeline.yml file --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml 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