Hi, we have an issue with bitbucket-pipelines and a private docker registry (azure acr).
This pipeline fails at the second step (init step runs successfully), with error message:
rpc error: code = Unknown desc = failed to pull and unpack image "private.azurecr.io/runners/azure-agent:v1": failed to resolve reference "private.azurecr.io/runners/azure-agent:v1": failed to authorize: failed to fetch oauth token: unexpected status: 401 Unauthorized
options:
docker: true
image:
name: private.azurecr.io/runners/azure-agent:v1
username: $AZURE_USERNAME
password: $AZURE_PASSWORD
definitions:
steps:
- step: &init
name: Initialise
services: [docker]
script:
- echo "init"
- step: &build
name: Build
services: [docker]
script:
- echo "build"
pipelines:
pull-requests:
'**':
- step: { <<: *init, deployment: Preview }
- step: { <<: *build }
While debugging I found the issue: an out of date AZURE_PASSWORD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.