use special build container

This commit is contained in:
2021-07-29 10:09:11 +02:00
parent a1d5b894bb
commit 1a6c468473
2 changed files with 3 additions and 4 deletions

View File

@ -24,7 +24,7 @@ check:
build: build:
image: node:14-buster image: registry.hottis.de/hv2/hv2-node-build-env:1.0.0
stage: build stage: build
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
@ -42,7 +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 generate3 - 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

View File

@ -8,8 +8,7 @@
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e", "e2e": "ng e2e",
"generate": "python ../helpers/hv2-api/generate.py -s ../helpers/hv2-api/schema.json -t ./src/app/*.tmpl", "generate": "python ../helpers/hv2-api/generate.py -s ../helpers/hv2-api/schema.json -t ./src/app/*.tmpl"
"generate3": "python3 ../helpers/hv2-api/generate.py -s ../helpers/hv2-api/schema.json -t ./src/app/*.tmpl"
}, },
"private": true, "private": true,