From 66b7b9be40e272642b7de51a1bcf1b6b8f058243 Mon Sep 17 00:00:00 2001 From: Rebecca Valente Date: Tue, 8 Jul 2025 01:16:13 -0300 Subject: [PATCH] devops: added a default section and a conditional check for npmrc in gitlab ci configuration. --- .../docker-image-build-then-push-to-local-registry.gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) 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 10c753c..29c1708 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,6 +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 build-and-push docker image to local registry: stage: build