File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,24 @@ jobs:
16
16
name : " publish to DockerHub"
17
17
runs-on : ubuntu-22.04
18
18
if : github.repository == 'microsoft/playwright-python'
19
+ permissions :
20
+ id-token : write # This is required for OIDC login (azure/login) to succeed
21
+ contents : read # This is required for actions/checkout to succeed
22
+ environment : Docker
19
23
steps :
20
24
- uses : actions/checkout@v3
25
+ - name : Azure login
26
+ uses : azure/login@v2
27
+ with :
28
+ client-id : ${{ secrets.AZURE_DOCKER_CLIENT_ID }}
29
+ tenant-id : ${{ secrets.AZURE_DOCKER_TENANT_ID }}
30
+ subscription-id : ${{ secrets.AZURE_DOCKER_SUBSCRIPTION_ID }}
31
+ - name : Login to ACR via OIDC
32
+ run : az acr login --name playwright
21
33
- name : Set up Python
22
34
uses : actions/setup-python@v4
23
35
with :
24
36
python-version : " 3.10"
25
- - uses : azure/docker-login@v1
26
- with :
27
- login-server : playwright.azurecr.io
28
- username : playwright
29
- password : ${{ secrets.DOCKER_PASSWORD }}
30
37
- name : Set up Docker QEMU for arm64 docker builds
31
38
uses : docker/setup-qemu-action@v2
32
39
with :
You can’t perform that action at this time.
0 commit comments