Skip to content

Commit b424eb0

Browse files
committed
chore: simplify deploy wf
1 parent 7789b4f commit b424eb0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/code-npm_node-deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ jobs:
5454
echo BACKEND_ENDPOINT=${{ env.BACKEND_ENDPOINT }} >> .env.production
5555
cat .env.production
5656
57+
- name: ACR Login
58+
run: |
59+
ACR_PASSWORD=$(az acr login --name ${{ env.AZURE_ACR_NAME }} --expose-token --output tsv --query accessToken)
60+
echo "AZURE_ACR_PASSWORD=$(echo $ACR_PASSWORD)" >> $GITHUB_ENV
61+
5762
- name: ACR Login
5863
uses: docker/login-action@v3
5964
with:
@@ -70,13 +75,6 @@ jobs:
7075
tags: ${{ env.AZURE_ACR_NAME }}.azurecr.io/${{ env.AZURE_CONTAINER_NAME }}:${{ github.sha }}
7176
file: code/Dockerfile
7277

73-
- name: Azure Login
74-
uses: azure/login@v2
75-
with:
76-
client-id: ${{ env.AZURE_CLIENT_ID }}
77-
tenant-id: ${{ env.AZURE_TENANT_ID }}
78-
subscription-id: ${{ env.AZURE_SUBSCRIPTION_ID }}
79-
8078
- name: Deploy
8179
uses: azure/cli@v2
8280
with:

0 commit comments

Comments
 (0)