diff --git a/.github/workflows/azure-prod-build-deploy.yml b/.github/workflows/azure-prod-build-deploy.yml index 06ac18399adf..e91a22aa5dc0 100644 --- a/.github/workflows/azure-prod-build-deploy.yml +++ b/.github/workflows/azure-prod-build-deploy.yml @@ -66,6 +66,7 @@ jobs: - name: 'Create Azure Container Registry Token' env: CONTAINER_REGISTRY_SERVER: ${{ secrets.PROD_REGISTRY_SERVER }} + CONTAINER_REPO: ${{ github.repository }} run: npm run create-acr-token - name: 'Docker login' diff --git a/package.json b/package.json index d9ee1dcd7ebe..2044a032df38 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "content-changes-table-comment": "tsx src/workflows/content-changes-table-comment.ts", "copy-fixture-data": "node src/tests/scripts/copy-fixture-data.js", "count-translation-corruptions": "tsx src/languages/scripts/count-translation-corruptions.ts", - "create-acr-token": "tsx src/workflows/acr-create-token.js", + "create-acr-token": "tsx src/workflows/acr-create-token.ts", "debug": "cross-env NODE_ENV=development ENABLED_LANGUAGES=en nodemon --inspect src/frame/server.ts", "delete-orphan-translation-files": "tsx src/workflows/delete-orphan-translation-files.ts", "deleted-features-pr-comment": "tsx src/data-directory/scripts/deleted-features-pr-comment.ts", diff --git a/src/workflows/acr-create-token.ts b/src/workflows/acr-create-token.ts index 4a17817ca211..a96f763a7aff 100755 --- a/src/workflows/acr-create-token.ts +++ b/src/workflows/acr-create-token.ts @@ -10,7 +10,7 @@ dotenv.config() const acrTokenName = process.env.ACR_TOKEN_NAME const acrServer = process.env.CONTAINER_REGISTRY_SERVER -const repo = process.env.GITHUB_REPOSITORY +const repo = process.env.CONTAINER_REPO function main() { // Get the current time and add 30 minutes to it