f/npm #3
@@ -29,6 +29,7 @@ API_PORT=8000
|
|||||||
MAX_UPLOAD_SIZE=524288000
|
MAX_UPLOAD_SIZE=524288000
|
||||||
|
|
||||||
# NPM Configuration (for frontend build)
|
# NPM Configuration (for frontend build)
|
||||||
# Leave blank or set to https://registry.npmjs.org/ for default npm registry
|
# Default: https://registry.npmjs.org/ (public npm registry)
|
||||||
# Set to your custom npm proxy/registry URL if needed (e.g., http://your-nexus-server:8081/repository/npm-proxy/)
|
# For restricted environments, set to your custom npm proxy/registry URL
|
||||||
NPM_REGISTRY=
|
# Example: http://your-nexus-server:8081/repository/npm-proxy/
|
||||||
|
NPM_REGISTRY=https://registry.npmjs.org/
|
||||||
|
|||||||
@@ -1,13 +1,28 @@
|
|||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
- build
|
||||||
|
|
||||||
# Test stage
|
# Test stage
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
|
allow_failure: true
|
||||||
image: containers.global.bsf.tools/node:20.11-alpine3.19
|
image: containers.global.bsf.tools/node:20.11-alpine3.19
|
||||||
script:
|
script:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
- npm config set registry https://deps.global.bsf.tools/artifactory/api/npm/registry.npmjs.org/
|
- npm config set registry https://deps.global.bsf.tools/artifactory/api/npm/registry.npmjs.org/
|
||||||
- npm config set strict-ssl false
|
- npm config set strict-ssl false
|
||||||
- npm config fix
|
- npm config fix
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
|
build_container:
|
||||||
|
stage: build
|
||||||
|
image: deps.global.bsf.tools/quay.io/buildah/stable:latest
|
||||||
|
variables:
|
||||||
|
IMAGE_NAME: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
|
||||||
|
before_script:
|
||||||
|
- mkdir -p /tmp/buildah-storage
|
||||||
|
- export BUILDAH_ROOT="/tmp/buildah-storage"
|
||||||
|
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
|
||||||
|
script:
|
||||||
|
- buildah bud --build-arg NPM_REGISTRY=https://deps.global.bsf.tools/artifactory/api/npm/registry.npmjs.org/ --storage-driver vfs --isolation chroot -t $IMAGE_NAME .
|
||||||
|
- buildah push --storage-driver vfs $IMAGE_NAME
|
||||||
@@ -38,7 +38,10 @@ services:
|
|||||||
|
|
||||||
app:
|
app:
|
||||||
container_name: warehouse13-app
|
container_name: warehouse13-app
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
args:
|
||||||
|
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmjs.org/}
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -23,20 +23,20 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "^19.1.0",
|
"@angular/common": "19.2.x",
|
||||||
"@angular/compiler": "^19.1.0",
|
"@angular/compiler": "19.2.x",
|
||||||
"@angular/core": "^19.1.0",
|
"@angular/core": "19.2.x",
|
||||||
"@angular/forms": "^19.1.0",
|
"@angular/forms": "19.2.x",
|
||||||
"@angular/platform-browser": "^19.1.0",
|
"@angular/platform-browser": "19.2.x",
|
||||||
"@angular/router": "^19.1.0",
|
"@angular/router": "19.2.x",
|
||||||
"rxjs": "~7.8.0",
|
"rxjs": "~7.8.0",
|
||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"zone.js": "~0.15.0"
|
"zone.js": "~0.15.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/build": "<=19.2.7",
|
"@angular/build": "19.2.x",
|
||||||
"@angular/cli": "<=19.2.7",
|
"@angular/cli": "19.2.x",
|
||||||
"@angular/compiler-cli": "^19.1.0",
|
"@angular/compiler-cli": "19.2.x",
|
||||||
"@types/jasmine": "~5.1.0",
|
"@types/jasmine": "~5.1.0",
|
||||||
"jasmine-core": "~5.9.0",
|
"jasmine-core": "~5.9.0",
|
||||||
"karma": "~6.4.0",
|
"karma": "~6.4.0",
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
"karma-coverage": "~2.2.0",
|
"karma-coverage": "~2.2.0",
|
||||||
"karma-jasmine": "~5.1.0",
|
"karma-jasmine": "~5.1.0",
|
||||||
"karma-jasmine-html-reporter": "~2.1.0",
|
"karma-jasmine-html-reporter": "~2.1.0",
|
||||||
"typescript": "~5.8.0",
|
"typescript": "5.x.x",
|
||||||
"undici-types": "7.12.0",
|
"undici-types": "7.12.0",
|
||||||
"node-releases": "2.0.21",
|
"node-releases": "2.0.21",
|
||||||
"node-gyp": "11.4.2",
|
"node-gyp": "11.4.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user