devops: updated gitlab ci configuration to handle npmrc file copying for docker build process.
This commit is contained in:
parent
66b7b9be40
commit
759c960d55
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user