v1.48.0 #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "publish release - Docker" | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
publish-docker-release: | |
name: "publish to DockerHub" | |
runs-on: ubuntu-22.04 | |
if: github.repository == 'microsoft/playwright-python' | |
permissions: | |
id-token: write # This is required for OIDC login (azure/login) to succeed | |
contents: read # This is required for actions/checkout to succeed | |
environment: Docker | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Azure login | |
uses: azure/login@v2 | |
with: | |
client-id: ${{ secrets.AZURE_DOCKER_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_DOCKER_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_DOCKER_SUBSCRIPTION_ID }} | |
- name: Login to ACR via OIDC | |
run: az acr login --name playwright | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Set up Docker QEMU for arm64 docker builds | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: arm64 | |
- name: Install dependencies & browsers | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r local-requirements.txt | |
pip install -e . | |
- run: ./utils/docker/publish_docker.sh stable |