2020-07-14 03:15:10 +03:00
|
|
|
name: "devrelease"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release-*
|
|
|
|
paths:
|
|
|
|
- docs/docker/**
|
2020-07-18 02:51:39 +03:00
|
|
|
- browsers.json
|
2020-07-14 03:15:10 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish-canary-docker:
|
|
|
|
name: "publish to DockerHub"
|
|
|
|
runs-on: ubuntu-18.04
|
2020-08-01 00:09:36 +03:00
|
|
|
if: github.repository == 'microsoft/playwright'
|
2020-07-14 03:15:10 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-07-18 02:51:39 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 10.15
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
2020-09-01 21:33:19 +03:00
|
|
|
- name: login & publish to docker
|
|
|
|
run: |
|
|
|
|
# login to docker
|
|
|
|
docker login --username playwright --password ${{ secrets.DOCKER_PASSWORD }} playwright.azurecr.io
|
|
|
|
# build docker image
|
|
|
|
./docs/docker/build.sh
|
|
|
|
# tag image accordingly
|
|
|
|
docker tag playwright:localbuild public/playwright:next
|
|
|
|
docker tag playwright:localbuild public/playwright:sha-$(git rev-parse HEAD)
|
|
|
|
docker rmi playwright:localbuild
|
|
|
|
# push image to registry
|
|
|
|
docker push public/playwright:next
|
2020-07-14 03:15:10 +03:00
|
|
|
|