devops: added a default section and a conditional check for npmrc in gitlab ci configuration.

This commit is contained in:
Rebecca Valente 2025-07-08 01:16:13 -03:00
parent efd09a91a1
commit 66b7b9be40

View File

@ -8,6 +8,7 @@ stages:
default: default:
before_script: before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - 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: build-and-push docker image to local registry:
stage: build stage: build