Skip to content

Commit c5b6082

Browse files
committed
Docker: Update version of Firefox in platform linux/arm64
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent ab8e519 commit c5b6082

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ on:
2828
required: false
2929
type: boolean
3030
default: false
31+
build-date:
32+
description: 'Build date'
33+
required: false
34+
type: string
35+
default: ''
3136
push:
3237
branches:
3338
- trunk
@@ -75,13 +80,18 @@ jobs:
7580
gh_cli_token: ${{ secrets.GITHUB_TOKEN }}
7681
- name: Sets build date
7782
run: |
78-
echo "BUILD_DATE=$(date '+%Y%m%d')" >> $GITHUB_ENV
83+
if [ -z "${BUILD_DATE}" ]; then
84+
echo "BUILD_DATE=$(date '+%Y%m%d')" >> $GITHUB_ENV
85+
else
86+
echo "BUILD_DATE=${BUILD_DATE}" >> $GITHUB_ENV
87+
fi
7988
echo "NAME=${NAMESPACE}" >> $GITHUB_ENV
8089
make set_build_multiarch
8190
cat .env | xargs -I {} echo {} >> $GITHUB_ENV
8291
env:
8392
NAMESPACE: ${{ vars.DOCKER_NAMESPACE || 'selenium' }}
8493
AUTHORS: ${{ vars.AUTHORS || 'SeleniumHQ' }}
94+
BUILD_DATE: ${{ github.event.inputs.build-date || '' }}
8595
- name: Sets prerelease to false by default
8696
run: echo "PRERELEASE=false" >> $GITHUB_ENV
8797
- name: Get Grid version

NodeFirefox/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN apt-get update -qqy && \
3333
FIREFOX_DOWNLOAD_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.deb" ; \
3434
fi \
3535
else \
36-
if [ $FIREFOX_VERSION = "latest" ]; then \
36+
if [ ${FIREFOX_VERSION} = "latest" ] && [ ${FIREFOX_DOWNLOAD_URL} = "" ]; then \
3737
FIREFOX_VERSION="nightly-latest" ; \
3838
/opt/bin/install-firefox-apt.sh \
3939
&& FIREFOX_VERSION=$(echo "-$FIREFOX_VERSION" | sed 's/-latest//') \

0 commit comments

Comments
 (0)