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