From 759c960d55e6ed7bc872c65ecce2e6a3f19116f2 Mon Sep 17 00:00:00 2001 From: Rebecca Valente Date: Tue, 8 Jul 2025 01:22:08 -0300 Subject: [PATCH] devops: updated gitlab ci configuration to handle npmrc file copying for docker build process. --- ...docker-image-build-then-push-to-local-registry.gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/docker-image-build-then-push-to-local-registry.gitlab-ci.yml b/pipelines/docker-image-build-then-push-to-local-registry.gitlab-ci.yml index 29c1708..9c584b6 100644 --- a/pipelines/docker-image-build-then-push-to-local-registry.gitlab-ci.yml +++ b/pipelines/docker-image-build-then-push-to-local-registry.gitlab-ci.yml @@ -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