File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,12 +61,11 @@ jobs:
6161
6262 # Create a temporary token for the Azure Container Registry
6363 # and set it as a GitHub Actions environment variable
64- # Then clean up by deleting the temp token.
6564 # Created token are viewable in the ACR resource UI
6665 # under Repository permissions > Tokens
6766 - name : ' Create Azure Container Registry Token'
6867 env :
69- PROD_REGISTRY_SERVER : ${{ secrets.PROD_REGISTRY_SERVER }}
68+ CONTAINER_REGISTRY_SERVER : ${{ secrets.PROD_REGISTRY_SERVER }}
7069 run : npm run create-acr-token
7170
7271 - name : ' Docker login'
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ type IsoDateString = string
99dotenv . config ( )
1010
1111const acrTokenName = process . env . ACR_TOKEN_NAME
12- const acrProdRegistryServer = process . env . PROD_REGISTRY_SERVER
12+ const acrServer = process . env . CONTAINER_REGISTRY_SERVER
1313const repo = process . env . GITHUB_REPOSITORY
1414
1515function main ( ) {
@@ -23,7 +23,7 @@ function main() {
2323 try {
2424 const cmd = `az acr token create \
2525 --name ${ acrTokenName } \
26- --registry ${ acrProdRegistryServer } \
26+ --registry ${ acrServer } \
2727 --repository ${ repo } \
2828 content/write \
2929 content/read \
You can’t perform that action at this time.
0 commit comments