Added moba feature
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user