Skip to content

Commit 91c395b

Browse files
authored
Revert "Revert "Update env var name to remove prod"" (#52711)
1 parent e60be9e commit 91c395b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/azure-prod-build-deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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'

src/workflows/acr-create-token.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type IsoDateString = string
99
dotenv.config()
1010

1111
const acrTokenName = process.env.ACR_TOKEN_NAME
12-
const acrProdRegistryServer = process.env.PROD_REGISTRY_SERVER
12+
const acrServer = process.env.CONTAINER_REGISTRY_SERVER
1313
const repo = process.env.GITHUB_REPOSITORY
1414

1515
function 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 \

0 commit comments

Comments
 (0)