From 0dbc6286c2c0f487cda8aca26f12dfeb8fcb3b6d Mon Sep 17 00:00:00 2001 From: Rebecca Valente Date: Tue, 8 Jul 2025 01:28:14 -0300 Subject: [PATCH] devops: updated script to copy npmrc to the root directory instead of the current directory if it's empty. --- ...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 9c584b6..8ac41cd 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 cd ${DOCKERFILE_DIRECTORY}; cp "$NPMRC" ./.npmrc; fi + - if ! test -z "$NPMRC"; then echo "NPMRC is in $NPMRC";cp "$NPMRC" /root/.npmrc; fi build-and-push docker image to local registry: stage: build