Skip to content

Commit 89a9729

Browse files
committed
update: Selenium Grid 4.25.0
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 0ac93a9 commit 89a9729

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

.github/workflows/nightly.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,6 @@ jobs:
8787
max_attempts: 3
8888
retry_wait_seconds: 60
8989
command: PLATFORMS="${PLATFORMS}" VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make build
90-
- name: Build Helm chart
91-
uses: nick-invision/retry@master
92-
with:
93-
timeout_minutes: 5
94-
max_attempts: 3
95-
retry_wait_seconds: 10
96-
command: |
97-
make chart_build_nightly
98-
echo "CHART_PACKAGE_PATH=$(cat /tmp/selenium_chart_version)" >> $GITHUB_ENV
99-
echo "CHART_FILE_NAME=$(basename $(cat /tmp/selenium_chart_version))" >> $GITHUB_ENV
10090
- name: Login Docker Hub
10191
run: |
10292
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
@@ -115,13 +105,6 @@ jobs:
115105
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release_nightly
116106
- name: Update package versions
117107
run: make generate_nightly_sbom
118-
- name: Push Helm chart to registry
119-
uses: nick-invision/retry@master
120-
with:
121-
timeout_minutes: 20
122-
max_attempts: 3
123-
retry_wait_seconds: 120
124-
command: make chart_release
125108
- name: Get current latest tag
126109
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0 --exclude=nightly --exclude=selenium-grid*)" >> $GITHUB_ENV
127110
- name: Display latest tag
@@ -144,6 +127,23 @@ jobs:
144127
with:
145128
tag: ${{ env.BASE_RELEASE }}
146129
token: ${{ secrets.GITHUB_TOKEN }}
130+
- name: Build Helm chart
131+
uses: nick-invision/retry@master
132+
with:
133+
timeout_minutes: 5
134+
max_attempts: 3
135+
retry_wait_seconds: 10
136+
command: |
137+
make chart_build_nightly
138+
echo "CHART_PACKAGE_PATH=$(cat /tmp/selenium_chart_version)" >> $GITHUB_ENV
139+
echo "CHART_FILE_NAME=$(basename $(cat /tmp/selenium_chart_version))" >> $GITHUB_ENV
140+
- name: Push Helm chart to registry
141+
uses: nick-invision/retry@master
142+
with:
143+
timeout_minutes: 20
144+
max_attempts: 3
145+
retry_wait_seconds: 120
146+
command: make chart_release
147147
- name: Create Nightly Release
148148
id: create_release
149149
uses: softprops/action-gh-release@master

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
NAME := $(or $(NAME),$(NAME),selenium)
22
CURRENT_DATE := $(shell date '+%Y%m%d')
33
BUILD_DATE := $(or $(BUILD_DATE),$(BUILD_DATE),$(CURRENT_DATE))
4-
BASE_RELEASE := $(or $(BASE_RELEASE),$(BASE_RELEASE),selenium-4.24.0)
5-
BASE_VERSION := $(or $(BASE_VERSION),$(BASE_VERSION),4.24.0)
6-
BINDING_VERSION := $(or $(BINDING_VERSION),$(BINDING_VERSION),4.24.0)
4+
BASE_RELEASE := $(or $(BASE_RELEASE),$(BASE_RELEASE),selenium-4.25.0)
5+
BASE_VERSION := $(or $(BASE_VERSION),$(BASE_VERSION),4.25.0)
6+
BINDING_VERSION := $(or $(BINDING_VERSION),$(BINDING_VERSION),4.25.0)
77
BASE_RELEASE_NIGHTLY := $(or $(BASE_RELEASE_NIGHTLY),$(BASE_RELEASE_NIGHTLY),nightly)
8-
BASE_VERSION_NIGHTLY := $(or $(BASE_VERSION_NIGHTLY),$(BASE_VERSION_NIGHTLY),4.25.0-SNAPSHOT)
9-
VERSION := $(or $(VERSION),$(VERSION),4.24.0)
8+
BASE_VERSION_NIGHTLY := $(or $(BASE_VERSION_NIGHTLY),$(BASE_VERSION_NIGHTLY),4.26.0-SNAPSHOT)
9+
VERSION := $(or $(VERSION),$(VERSION),4.25.0)
1010
TAG_VERSION := $(VERSION)-$(BUILD_DATE)
1111
CHART_VERSION_NIGHTLY := $(or $(CHART_VERSION_NIGHTLY),$(CHART_VERSION_NIGHTLY),1.0.0-nightly)
1212
NAMESPACE := $(or $(NAMESPACE),$(NAMESPACE),$(NAME))

tests/charts/make/chart_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NAMESPACE=${NAMESPACE:-"selenium"}
77
latest_chart_version=$(find . \( -type d -name .git -prune \) -o -type f -wholename '*/selenium-grid/Chart.yaml' -print0 | xargs -0 cat | grep ^version | cut -d ':' -f 2 | tr -d '[:space:]')
88
echo "${latest_chart_version}" > /tmp/latest_chart_version
99
helm template oci://registry-1.docker.io/${NAMESPACE}/selenium-grid --version ${latest_chart_version}
10-
if [[ $? -eq 0 ]]; then
10+
if [[ $? -eq 0 ]] && [[ "${latest_chart_version}" != *nightly ]]; then
1111
echo "Chart version $latest_chart_version is already available in the registry"
1212
exit 0
1313
fi

0 commit comments

Comments
 (0)