Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
heyitsaamir committed Sep 17, 2024
1 parent 2e985dc commit f063dc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ inputs:
REGISTRY_USERNAME:
description: 'Registry username'
required: false
REGISTRY_NAME:
description: 'Registry name'
required: false
REGISTRY_PASSWORD:
description: 'Registry password'
required: false
Expand Down Expand Up @@ -45,14 +48,14 @@ runs:
uses: azure/login@v1
if: env.CREDS_PROVIDED == 'false'
with:
client-id: ${{ secrets.AZURE_CLIENT_ID_GITHUB_AUTH }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
client-id: ${{ inputs.AZURE_CLIENT_ID_GITHUB_AUTH }}
tenant-id: ${{ inputs.AZURE_TENANT_ID }}
subscription-id: ${{ inputs.AZURE_SUBSCRIPTION_ID }}

- name: 'Login to ACR via OIDC'
shell: bash
if: env.CREDS_PROVIDED == 'false'
run: az acr login --name <registry-name>
run: az acr login --name {{ $inputs.REGISTRY_NAME }}

- name: Login to Registry Password
uses: azure/docker-login@v1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_deploy_workflow_msft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
REGISTRY_NAME: athenaprivacyreviewbeta
- name: Deploy to prod
uses: ./.github/actions/deploy
with:
Expand Down

0 comments on commit f063dc0

Please sign in to comment.