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:
stage: setup
script:
- npm install
tags:
- drugstone
check:lint:
image: trion/ng-cli-karma
......@@ -22,6 +24,8 @@ check:lint:
- npm run lint
dependencies:
- setup
tags:
- drugstone
#check:test:
# image: trion/ng-cli-karma
......@@ -40,11 +44,41 @@ build:
- dist
script:
- npm install
- npm run build
- npm run build:netex
dependencies:
- check:lint
tags:
- drugstone
# - 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:
image: docker
stage: deploy
......@@ -62,6 +96,8 @@ deploy:dev:
- docker push gitlab.lrz.de:5005/netex/frontend:dev
dependencies:
- build
tags:
- drugstone
deploy:prod:
image: docker
......@@ -81,3 +117,5 @@ deploy:prod:
- docker push gitlab.lrz.de:5005/netex/frontend:prod
dependencies:
- 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