mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
0efa4a90cc
As per https://github.com/microsoft/playwright-internal/blob/main/INFRASTRUCTURE.md. Fixes https://github.com/microsoft/playwright/issues/27148.
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
name: "publish release - Docker"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
is_release:
|
|
required: true
|
|
type: boolean
|
|
description: "Is this a release image?"
|
|
|
|
release:
|
|
types: [published]
|
|
|
|
env:
|
|
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
|
|
|
jobs:
|
|
publish-docker-release:
|
|
name: "publish to DockerHub"
|
|
runs-on: ubuntu-20.04
|
|
if: github.repository == 'microsoft/playwright'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- uses: azure/docker-login@v1
|
|
with:
|
|
login-server: playwright.azurecr.io
|
|
username: playwright
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Set up Docker QEMU for arm64 docker builds
|
|
uses: docker/setup-qemu-action@v2
|
|
with:
|
|
platforms: arm64
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npx playwright install-deps
|
|
- run: ./utils/docker/publish_docker.sh stable
|
|
if: (github.event_name != 'workflow_dispatch' && !github.event.release.prerelease) || (github.event_name == 'workflow_dispatch' && github.event.inputs.is_release == 'true')
|
|
- run: ./utils/docker/publish_docker.sh canary
|
|
if: (github.event_name != 'workflow_dispatch' && github.event.release.prerelease) || (github.event_name == 'workflow_dispatch' && github.event.inputs.is_release != 'true')
|