@@ -31,26 +31,16 @@ jobs:
3131 name : Set Variables
3232 runs-on : ubuntu-24.04
3333 outputs :
34- chrome_version : ${{ steps.chrome_version .outputs.CHROME_VERSION }}
34+ CHROME_FOR_TESTING_VERSION : ${{ steps.chrome_for_testing_version .outputs.CHROME_FOR_TESTING_VERSION }}
3535 steps :
3636 - name : Get latest stable Chrome version
37- id : chrome_version
37+ id : chrome_for_testing_version
3838 run : |
39- # The cypress/factory Docker image requires CHROME_VERSION to be set and the image downloads Chrome from deb
40- # repository provided by Chrome project:
41- # https://github.com/cypress-io/cypress-docker-images/blob/master/factory/installScripts/chrome/default.sh
42- # The default.sh is called from
43- # https://github.com/cypress-io/cypress-docker-images/blob/master/factory/installScripts/chrome/install-chrome-version.js
44- #
45- # A deb repository contains Packages file that lists all packages with current versions available in the package
46- # repository, i.e. the Packages file can be used to find out the current Chrome version
47- echo "CHROME_VERSION=$(
48- curl -s https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages \
49- | awk '
50- /^Package: google-chrome-stable/{stable_pkg=1}
51- stable_pkg && /^$/{stable_pkg=0}
52- stable_pkg && /^Version:/{print $2}
53- ' \
39+ echo "CHROME_FOR_TESTING_VERSION=$(
40+ curl \
41+ -s \
42+ https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json \
43+ | jq -r .channels.Stable.version
5444 )" >> $GITHUB_OUTPUT
5545
5646 publish_cypress_docker_image_to_acr :
6656 build_arm64_image : true
6757 file : Dockerfile.cypress
6858 build_args : |
69- CHROME_VERSION =${{ needs.set_variables.outputs.chrome_version }}
59+ CHROME_FOR_TESTING_VERSION =${{ needs.set_variables.outputs.chrome_for_testing_version }}
7060 secrets :
7161 azure_client_id : ${{ secrets.AZURE_CLIENT_ID }}
7262 azure_tenant_id : ${{ secrets.AZURE_TENANT_ID }}
0 commit comments