mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: automate Docker image publishing (#2937)
This starts publishing our Docker images using Github Actions: - on every commit, a new image will be pushed, tagged with a SHA of the commit, e.g. `mcr.microsoft.com/playwright:sha-fe997eca88d6de48378b05133dadfe032bd8b0ea` - on every release, a new image will be pushed, tagged with the release version, e.g. `mcr.microsoft.com/playwright:v1.2.1` **Note:** today we don't version our images and instead push them all as `bionic`. This patch retains the tag - along with `latest`. Both `bionic` and `latest` tags will point to the latest release.
This commit is contained in:
parent
65d45c18c3
commit
b7d68d1cdb
10
.github/workflows/publish_canary.yml
vendored
10
.github/workflows/publish_canary.yml
vendored
@ -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
|
||||
|
||||
|
||||
11
.github/workflows/publish_release.yml
vendored
11
.github/workflows/publish_release.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user