Skip to content

Commit

Permalink
Update registries.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhy89 authored and xescab committed Sep 6, 2023
1 parent 05010f1 commit b8044a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/configuration/registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ You can authenticate against an Azure Container Registry using Azure Managed Ide
```yaml
registries:
- name: ACR example with external script
api_url: https://acrexample.azurecr.io/
prefix: acrexample.azurecr.io
api_url: https://acr-example.azurecr.io/
prefix: acr-example.azurecr.io
credentials: ext:/app/scripts/acr-login.sh
credsexpire: 10h
```
Expand All @@ -347,7 +347,7 @@ The script should contain the name of the registry:
acr-login.sh: |
#!/bin/sh
LOGIN=$(az login --identity)
REGISTRY="acrexample"
REGISTRY="acr-example"
TOKEN=$(az acr login --name $REGISTRY --expose-token --output tsv --query accessToken)
echo "00000000-0000-0000-0000-000000000000:$TOKEN"
```
Expand Down

0 comments on commit b8044a0

Please sign in to comment.