Azure pipeline, npmAuthenticate task in custom docker container

  azure-pipelines, docker, npm

I am trying to use npmAuthenticate task in azure pipeline which is running script in custom docker container

container:
  image: android_builder:37878
  endpoint: sc-acr

steps:
- task: [email protected]
  inputs:
    workingFile: '.npmrc'
- script: |
    npm i

The azure private registry is in my organisation, but npm install is failing because of auth
I haven’t found a example of using this task in docker container in documentation, so not sure if this works in this way

Source: Docker Questions

LEAVE A COMMENT