Skip to content

Commit e3451b2

Browse files
authored
Migrate client secret to OIDC for Azure Marketplace (#8532)
1 parent d078f1a commit e3451b2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/plus-release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,16 @@ jobs:
279279
username: oauth2accesstoken
280280
password: ${{ steps.gcr-auth.outputs.access_token }}
281281

282-
- name: Login to ACR
283-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
282+
- name: Azure login
283+
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
284284
with:
285-
registry: nginxmktpl.azurecr.io
286-
username: ${{ secrets.AZ_MKTPL_ID }}
287-
password: ${{ secrets.AZ_MKTPL_SECRET }}
285+
client-id: ${{ secrets.AZURE_MKTPL_CLIENT_ID }}
286+
tenant-id: ${{ secrets.AZURE_MKTPL_TENANT_ID }}
287+
subscription-id: ${{ secrets.AZURE_MKTPL_SUBSCRIPTION_ID }}
288+
289+
- name: Azure Container Registry login
290+
run: |
291+
az acr login --name nginxmktpl
288292
289293
- name: Publish images
290294
run: |

0 commit comments

Comments
 (0)