Skip to content

Commit

Permalink
Enable passing custom or wildcard container repo (#52767)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmari authored Oct 18, 2024
1 parent f09f014 commit d8a2afc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/azure-prod-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/workflows/acr-create-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8a2afc

Please sign in to comment.