Added moba feature

This commit is contained in:
2025-02-26 19:44:29 +01:00
parent 70101b8d9b
commit 970e018ec2
5 changed files with 42 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ stages:
- install
- lint
- build
- publish
install:
stage: install
@@ -36,7 +37,8 @@ build:
- npm run build
artifacts:
paths:
- $CI_PROJECT_DIR/dist
- $CI_PROJECT_DIR/www
expire_in: 10 minutes
cache:
key:
files:
@@ -44,3 +46,16 @@ build:
paths:
- node_modules
policy: pull
publish:
stage: publish
script:
- export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//')
- docker login -u leon.hoppe -p ${CI_REGISTRY_PASSWORD} registry.leon-hoppe.de
- docker build -t registry.leon-hoppe.de/leon.hoppe/worktime:$VERSION -t registry.leon-hoppe.de/leon.hoppe/worktime:latest .
- docker push registry.leon-hoppe.de/leon.hoppe/worktime:$VERSION
- docker push registry.leon-hoppe.de/leon.hoppe/worktime:latest
only:
- tags
dependencies:
- build