use special build container
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user