mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
cbd33f9601
Everytime I sync my fork to upstream, I get failure notifications:
```
Run failed for master (3edfb2a
)
Repository: rwoll/playwright
Workflow: devrelease
Duration: 10 minutes and 34.0 seconds
Finished: 2020-07-31 18:30:13 UTC
```
Since forks should never have the necessary secrets to publish
the npm and Docker packages, we limit the running of these jobs to avoid
noisy failures for contributors.
36 lines
822 B
YAML
36 lines
822 B
YAML
name: "devrelease"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
paths:
|
|
- docs/docker/**
|
|
- browsers.json
|
|
|
|
jobs:
|
|
publish-canary-docker:
|
|
name: "publish to DockerHub"
|
|
runs-on: ubuntu-18.04
|
|
if: github.repository == 'microsoft/playwright'
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10.15
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: ./docs/docker/build.sh --prepare-context
|
|
- uses: docker/build-push-action@v1
|
|
with:
|
|
username: playwright
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
registry: playwright.azurecr.io
|
|
repository: public/playwright
|
|
path: docs/docker/
|
|
dockerfile: docs/docker/Dockerfile.bionic
|
|
tags: next
|
|
tag_with_sha: true
|
|
|