Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: automate Docker image publishing (#2937)

Andrey Lushnikovb7d68d1cdbc2
diff --git a/.github/workflows/publish_canary.yml b/.github/workflows/publish_canary.yml
index c7d7ca86f7..2241867be7 100644
--- a/.github/workflows/publish_canary.yml
+++ b/.github/workflows/publish_canary.yml
@@ -26,4 +26,14 @@ jobs:
- run: utils/publish_all_packages.sh --tip-of-tree
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+ - uses: docker/build-push-action@v1
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+ registry: playwright.azurecr.io
+ repository: microsoft/playwright
+ path: docs/docker/
+ dockerfile: docs/docker/Dockerfile.bionic
+ tags: dev
+ tag_with_sha: true
diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml
index 1bb9721167..773c415df3 100644
--- a/.github/workflows/publish_release.yml
+++ b/.github/workflows/publish_release.yml
@@ -23,4 +23,13 @@ jobs:
- run: utils/publish_all_packages.sh --release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
-
+ - uses: docker/build-push-action@v1
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+ registry: playwright.azurecr.io
+ repository: microsoft/playwright
+ path: docs/docker/
+ dockerfile: docs/docker/Dockerfile.bionic
+ tags: bionic,latest
+ tag_with_ref: true