Skip to content
Snippets Groups Projects
Commit 3c1c9fe5 authored by AndiMajore's avatar AndiMajore
Browse files

Merge branch 'master' of gitlab.lrz.de:netex/frontend

parents 54c1fbf2 a49a71f2
No related branches found
No related tags found
No related merge requests found
Pipeline #11006 failed
...@@ -13,6 +13,8 @@ setup: ...@@ -13,6 +13,8 @@ setup:
stage: setup stage: setup
script: script:
- npm install - npm install
tags:
- drugstone
check:lint: check:lint:
image: trion/ng-cli-karma image: trion/ng-cli-karma
...@@ -22,6 +24,8 @@ check:lint: ...@@ -22,6 +24,8 @@ check:lint:
- npm run lint - npm run lint
dependencies: dependencies:
- setup - setup
tags:
- drugstone
#check:test: #check:test:
# image: trion/ng-cli-karma # image: trion/ng-cli-karma
...@@ -40,11 +44,41 @@ build: ...@@ -40,11 +44,41 @@ build:
- dist - dist
script: script:
- npm install - npm install
- npm run build - npm run build:netex
dependencies: dependencies:
- check:lint - check:lint
tags:
- drugstone
# - check:test # - check:test
deploy:release:
image: alpine/git
stage: deploy
when: manual
variables:
GITHUB_TOKEN: "$DRUGSTONE_DEPLOY_KEY"
dependencies:
- build
before_script:
- APP_NAME=drugstone
- ERSION_NAME="v9.0.1"
- FILENAME="$APP_NAME-v$VERSION_NAME"
- TAG="v{VERSION_NAME}
- TAG="latest-master"
script:
- echo $APP_NAME
- echo $VERSION_NAME
- echo $FILENAME
- echo $TAG
- mv drugstone-build/* ./
- mv styles.css drugstone.css
- git clone https://github.com/AndiMajore/drugstone-releases.git
- cd releases
- gh release delete $TAG
- gh release create -a ../$APP_NAME.* -m "Latest release of drugsTone $FILENAME -p $TAG"
tags:
- drugstone
deploy:dev: deploy:dev:
image: docker image: docker
stage: deploy stage: deploy
...@@ -62,6 +96,8 @@ deploy:dev: ...@@ -62,6 +96,8 @@ deploy:dev:
- docker push gitlab.lrz.de:5005/netex/frontend:dev - docker push gitlab.lrz.de:5005/netex/frontend:dev
dependencies: dependencies:
- build - build
tags:
- drugstone
deploy:prod: deploy:prod:
image: docker image: docker
...@@ -81,3 +117,5 @@ deploy:prod: ...@@ -81,3 +117,5 @@ deploy:prod:
- docker push gitlab.lrz.de:5005/netex/frontend:prod - docker push gitlab.lrz.de:5005/netex/frontend:prod
dependencies: dependencies:
- build - build
tags:
- drugstone
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment