mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: do not publish sha-X Docker images (#29433)
This commit is contained in:
parent
7a86bf4af6
commit
abd8502490
13
.github/workflows/publish_canary.yml
vendored
13
.github/workflows/publish_canary.yml
vendored
@ -13,7 +13,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-canary:
|
publish-canary:
|
||||||
name: "publish canary NPM & Publish canary Docker"
|
name: "publish canary NPM"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: github.repository == 'microsoft/playwright'
|
if: github.repository == 'microsoft/playwright'
|
||||||
permissions:
|
permissions:
|
||||||
@ -57,17 +57,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
utils/build/build-playwright-driver.sh
|
utils/build/build-playwright-driver.sh
|
||||||
utils/build/upload-playwright-driver.sh
|
utils/build/upload-playwright-driver.sh
|
||||||
- uses: azure/docker-login@v1
|
|
||||||
with:
|
|
||||||
login-server: playwright.azurecr.io
|
|
||||||
username: playwright
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
- name: Set up Docker QEMU for arm64 docker builds
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
with:
|
|
||||||
platforms: arm64
|
|
||||||
- name: publish docker canary
|
|
||||||
run: ./utils/docker/publish_docker.sh canary
|
|
||||||
|
|
||||||
publish-trace-viewer:
|
publish-trace-viewer:
|
||||||
name: "publish Trace Viewer to trace.playwright.dev"
|
name: "publish Trace Viewer to trace.playwright.dev"
|
||||||
|
4
.github/workflows/publish_release_docker.yml
vendored
4
.github/workflows/publish_release_docker.yml
vendored
@ -17,7 +17,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
publish-docker-release:
|
publish-docker-release:
|
||||||
name: "publish to DockerHub"
|
name: "publish to DockerHub"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
if: github.repository == 'microsoft/playwright'
|
if: github.repository == 'microsoft/playwright'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -31,7 +31,7 @@ jobs:
|
|||||||
username: playwright
|
username: playwright
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Set up Docker QEMU for arm64 docker builds
|
- name: Set up Docker QEMU for arm64 docker builds
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: arm64
|
platforms: arm64
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
@ -113,8 +113,6 @@ We currently publish images with the following tags:
|
|||||||
- `:v%%VERSION%%` - Playwright v%%VERSION%% release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
- `:v%%VERSION%%` - Playwright v%%VERSION%% release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
||||||
- `:v%%VERSION%%-jammy` - Playwright v%%VERSION%% release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
- `:v%%VERSION%%-jammy` - Playwright v%%VERSION%% release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
||||||
- `:v%%VERSION%%-focal` - Playwright v%%VERSION%% release docker image based on Ubuntu 20.04 LTS (Focal Fossa).
|
- `:v%%VERSION%%-focal` - Playwright v%%VERSION%% release docker image based on Ubuntu 20.04 LTS (Focal Fossa).
|
||||||
- `:sha-XXXXXXX` - docker image for every commit that changed
|
|
||||||
docker files or browsers, marked with a [short sha](https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection#Short-SHA-1) (first 7 digits of the SHA commit).
|
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
It is recommended to always pin your Docker image to a specific version if possible. If the Playwright version in your Docker image does not match the version in your project/tests, Playwright will be unable to locate browser executables.
|
It is recommended to always pin your Docker image to a specific version if possible. If the Playwright version in your Docker image does not match the version in your project/tests, Playwright will be unable to locate browser executables.
|
||||||
|
@ -26,14 +26,8 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${GITHUB_SHA}" ]]; then
|
|
||||||
echo "ERROR: GITHUB_SHA env variable must be specified"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
FOCAL_TAGS=(
|
FOCAL_TAGS=(
|
||||||
"next"
|
"next"
|
||||||
"sha-${GITHUB_SHA}"
|
|
||||||
"next-focal"
|
"next-focal"
|
||||||
"v${PW_VERSION}-focal"
|
"v${PW_VERSION}-focal"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user