Add .gitlab-ci.yml

This commit is contained in:
Tulir Asokan 2019-07-28 22:09:55 +03:00
parent b6b1a99096
commit 959dabeda0
1 changed files with 27 additions and 0 deletions

27
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,27 @@
image: dock.mau.dev/maubot/maubot
stages:
- build
variables:
PYTHONPATH: /opt/maubot
build:
stage: build
except:
- tags
script:
- python3 -m maubot.cli build -o xyz.maubot.$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA.mbp
artifacts:
paths:
- "*.mbp"
build tags:
stage: build
only:
- tags
script:
- python3 -m maubot.cli build -o xyz.maubot.$CI_PROJECT_NAME-$CI_COMMIT_TAG.mbp
artifacts:
paths:
- "*.mbp"