mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 22:22:53 +03:00
967f3b7505
This will end up in the following Docker tags: - focal <- new - bionic < old as before - latest <- old as before, keep bionic for now until EOL is reached - v1.4 <- old as before, is bionic - v1.4-focal <- new, is focal Depends on https://github.com/aslushnikov/devops.aslushnikov.com/pull/3 to ensure it works. Relates to https://github.com/microsoft/playwright/issues/3791.
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
name: "devrelease:docker"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
paths:
|
|
- docs/docker/**
|
|
- browsers.json
|
|
- .github/workflows/publish_canary_docker.yml
|
|
|
|
jobs:
|
|
publish-canary-docker:
|
|
name: "publish to DockerHub"
|
|
# We use `docker push --all-tags` to push all tags which is a newly addition to docker
|
|
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: microsoft/playwright-github-action@v1
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10.15
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: ./docs/docker/build.sh bionic playwright:localbuild-bionic
|
|
- run: ./docs/docker/build.sh focal playwright:localbuild-focal
|
|
- name: tag & publish
|
|
run: |
|
|
./docs/docker/tag_and_push.sh playwright:localbuild-bionic playwright.azurecr.io/public/playwright:next
|
|
./docs/docker/tag_and_push.sh playwright:localbuild-bionic playwright.azurecr.io/public/playwright:next-bionic
|
|
./docs/docker/tag_and_push.sh playwright:localbuild-bionic playwright.azurecr.io/public/playwright:sha-${{ github.sha }}
|
|
./docs/docker/tag_and_push.sh playwright:localbuild-focal playwright.azurecr.io/public/playwright:next-focal
|
|
|