mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: align release publishing of docker image with dev releases (#3725)
This patch starts using the same approach to docker publishing that we currently use to publish canary docker images.
This commit is contained in:
parent
42a64048e8
commit
84a0066c9f
26
.github/workflows/publish_release.yml
vendored
26
.github/workflows/publish_release.yml
vendored
@ -29,19 +29,23 @@ jobs:
|
|||||||
if: github.repository == 'microsoft/playwright'
|
if: github.repository == 'microsoft/playwright'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: ./docs/docker/build.sh --prepare-context
|
- run: ./docs/docker/build.sh
|
||||||
- uses: docker/build-push-action@v1
|
- name: tag & publish
|
||||||
with:
|
run: |
|
||||||
username: playwright
|
# GITHUB_REF has a form of `refs/tags/v1.3.0`.
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
# TAG_NAME would be `v1.3.0`
|
||||||
registry: playwright.azurecr.io
|
TAG_NAME=${GITHUB_REF#refs/tags/}
|
||||||
repository: public/playwright
|
./docs/docker/tag_and_push.sh playwright.azurecr.io/public/playwright:latest
|
||||||
path: docs/docker/
|
./docs/docker/tag_and_push.sh playwright.azurecr.io/public/playwright:bionic
|
||||||
dockerfile: docs/docker/Dockerfile.bionic
|
./docs/docker/tag_and_push.sh playwright.azurecr.io/public/playwright:${TAG_NAME}
|
||||||
tags: bionic,latest
|
|
||||||
tag_with_ref: true
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user