mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
fe32d38414
This way we not only fix Docker images, but also fix `npx playwright install-deps` in virtual machines.
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
name: "devrelease:docker"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
paths:
|
|
- utils/docker/**
|
|
- browsers.json
|
|
- .github/workflows/publish_canary_docker.yml
|
|
- src/nativeDeps.ts
|
|
|
|
jobs:
|
|
publish-canary-docker:
|
|
name: "publish to DockerHub"
|
|
runs-on: ubuntu-20.04
|
|
if: github.repository == 'microsoft/playwright'
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: azure/docker-login@v1
|
|
with:
|
|
login-server: playwright.azurecr.io
|
|
username: playwright
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 12
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: node lib/cli/cli install-deps
|
|
- run: ./utils/docker/build.sh bionic playwright:localbuild-bionic
|
|
- run: ./utils/docker/build.sh focal playwright:localbuild-focal
|
|
- name: tag & publish
|
|
run: |
|
|
./utils/docker/tag_and_push.sh playwright:localbuild-bionic playwright.azurecr.io/public/playwright:next-bionic
|
|
./utils/docker/tag_and_push.sh playwright:localbuild-focal playwright.azurecr.io/public/playwright:next
|
|
./utils/docker/tag_and_push.sh playwright:localbuild-focal playwright.azurecr.io/public/playwright:sha-${{ github.sha }}
|
|
./utils/docker/tag_and_push.sh playwright:localbuild-focal playwright.azurecr.io/public/playwright:next-focal
|
|
|