Skip to content

Commit 03aa5c3

Browse files
committed
test az acr login
1 parent 29dc792 commit 03aa5c3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ jobs:
3131
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
3232
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3333

34-
- name: Docker Login to ACR using Workload Identity Federation
35-
uses: docker/login-action@v3
36-
with:
37-
registry: ${{ secrets.ACR_LOGIN_SERVER }}
38-
workload_identity_token: ${{ steps.azure_login.outputs.id-token }}
34+
- name: Login to ACR
35+
run: az acr login --name ${{ secrets.ACR_LOGIN_SERVER }}
36+
#- name: Docker Login to ACR using Workload Identity Federation
37+
# uses: docker/login-action@v3
38+
# with:
39+
# registry: ${{ secrets.ACR_LOGIN_SERVER }}
40+
# username: ${{ secrets.AZURE_CLIENT_ID }}
41+
# password: ${{ secrets.AZURE_CLIENT_SECRET }}
3942

4043
- name: Build and Push Docker Image
4144
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)