mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Add GitLab CI file used by all plugins
This commit is contained in:
parent
6ec653c69f
commit
e0daeeafc6
29
.gitlab-ci-plugin.yml
Normal file
29
.gitlab-ci-plugin.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
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"
|
||||||
|
expire_in: 365 days
|
||||||
|
|
||||||
|
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"
|
||||||
|
expire_in: never
|
Loading…
Reference in New Issue
Block a user