devops: updated gitlab ci configuration to handle npmrc file copying for docker build process.

This commit is contained in:
Rebecca Valente 2025-07-08 01:22:08 -03:00
parent 66b7b9be40
commit 759c960d55

View File

@ -8,7 +8,7 @@ stages:
default:
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- if ! test -z "$NPMRC"; then echo "$NPMRC" > /root/.npmrc; fi
- if ! test -z "$NPMRC"; then cd ${DOCKERFILE_DIRECTORY}; cp "$NPMRC" ./.npmrc; fi
build-and-push docker image to local registry:
stage: build