Adding pipeline.yml file
This commit is contained in:
parent
41f0b30818
commit
0f3415d6a0
34
.gitlab-ci.yml
Normal file
34
.gitlab-ci.yml
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user