2020-09-02 02:51:32 +03:00
|
|
|
name: "devrelease:docker"
|
2020-07-14 03:15:10 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release-*
|
|
|
|
paths:
|
2021-01-03 19:47:29 +03:00
|
|
|
- utils/docker/**
|
2020-07-18 02:51:39 +03:00
|
|
|
- browsers.json
|
2020-09-02 02:59:03 +03:00
|
|
|
- .github/workflows/publish_canary_docker.yml
|
2020-07-14 03:15:10 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish-canary-docker:
|
|
|
|
name: "publish to DockerHub"
|
2020-09-02 21:46:24 +03:00
|
|
|
runs-on: ubuntu-20.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-09-02 00:24:42 +03:00
|
|
|
- uses: azure/docker-login@v1
|
|
|
|
with:
|
|
|
|
login-server: playwright.azurecr.io
|
|
|
|
username: playwright
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2020-09-02 21:32:59 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-07-18 02:51:39 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2020-07-18 02:51:39 +03:00
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
2021-01-03 19:47:29 +03:00
|
|
|
- run: ./utils/docker/build.sh bionic playwright:localbuild-bionic
|
|
|
|
- run: ./utils/docker/build.sh focal playwright:localbuild-focal
|
2020-09-02 20:33:54 +03:00
|
|
|
- name: tag & publish
|
2020-09-01 21:33:19 +03:00
|
|
|
run: |
|
2021-01-03 19:47:29 +03:00
|
|
|
./utils/docker/tag_and_push.sh playwright:localbuild-bionic playwright.azurecr.io/public/playwright:next-bionic
|
2021-04-06 02:09:35 +03:00
|
|
|
./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 }}
|
2021-01-03 19:47:29 +03:00
|
|
|
./utils/docker/tag_and_push.sh playwright:localbuild-focal playwright.azurecr.io/public/playwright:next-focal
|
2020-07-14 03:15:10 +03:00
|
|
|
|