devops: added a default section and a conditional check for npmrc in gitlab ci configuration.
This commit is contained in:
parent
efd09a91a1
commit
66b7b9be40
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user