generate in ci

This commit is contained in:
2021-07-28 18:09:59 +02:00
parent 59ec8fe245
commit b4e6b8d746

View File

@ -26,6 +26,8 @@ check:
build: build:
image: node:14-buster image: node:14-buster
stage: build stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
tags: tags:
- hottis - hottis
- linux - linux
@ -40,6 +42,7 @@ build:
sed -i -e 's/GITTAGVERSION/'"$CI_COMMIT_TAG"':'"$CI_COMMIT_SHORT_SHA"'/' ./src/app/navigation/navigation.component.html; sed -i -e 's/GITTAGVERSION/'"$CI_COMMIT_TAG"':'"$CI_COMMIT_SHORT_SHA"'/' ./src/app/navigation/navigation.component.html;
fi fi
- npm install - npm install
- npm run generate
- ./node_modules/.bin/ng build --prod - ./node_modules/.bin/ng build --prod
- tar -czf ../dist.tgz dist - tar -czf ../dist.tgz dist