mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
d58a57c4b2
- Repository name has to start with `public/` to be exported to dockerhub. - Remove `DOCKER_USERNAME` to avoid unnecessary masking in our logs. - Publish dev versions of Docker image only when changes to docker file happen. (this is why NPM publishing and Docker publishing for dev releases are now separate). - Release publishing in two separate jobs to make them independent. References #2926
28 lines
578 B
YAML
28 lines
578 B
YAML
name: "devrelease"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
paths:
|
|
- docs/docker/**
|
|
|
|
jobs:
|
|
publish-canary-docker:
|
|
name: "publish to DockerHub"
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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: dev
|
|
tag_with_sha: true
|
|
|