File tree Expand file tree Collapse file tree 7 files changed +72
-34
lines changed Expand file tree Collapse file tree 7 files changed +72
-34
lines changed Original file line number Diff line number Diff line change 1
1
name : Build & test
2
- concurrency :
3
- group : ${{ github.workflow }}
4
2
5
3
on :
4
+ workflow_call :
5
+ inputs :
6
+ release :
7
+ description : ' Test a new release process'
8
+ required : false
9
+ type : boolean
10
+ default : false
6
11
workflow_dispatch :
7
12
push :
8
13
paths-ignore :
@@ -15,6 +20,16 @@ permissions:
15
20
contents : read
16
21
17
22
jobs :
23
+ docker-test :
24
+ uses : ./.github/workflows/docker-test.yml
25
+ with :
26
+ release : ${{ inputs.release == 'true' }}
27
+
28
+ helm-chart-test :
29
+ uses : ./.github/workflows/helm-chart-test.yml
30
+ with :
31
+ release : ${{ inputs.release == 'true' }}
32
+
18
33
build-and-test :
19
34
name : Build & test Docker images with random user
20
35
runs-on : ubuntu-latest
51
66
- name : Output branch name
52
67
run : echo ${BRANCH}
53
68
- name : Set Selenium base version
54
- if : contains(toJson(github.event.commits), '[deploy]') == false
69
+ if : inputs.release != 'true'
55
70
run : |
56
71
make set_build_nightly
57
72
cat .env | xargs -I {} echo {} >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -2,14 +2,27 @@ name: Deploys
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ release :
7
+ description : ' Deploy a new release'
8
+ required : false
9
+ type : boolean
10
+ default : false
5
11
push :
6
12
branches :
7
13
- trunk
8
14
9
15
jobs :
10
- deploy :
11
- # Only continue if the commit message has '[deploy]' in it
16
+ build-test :
12
17
if : contains(toJson(github.event.commits), '[deploy]') == true || github.event_name == 'workflow_dispatch'
18
+ uses : ./.github/workflows/build-test.yml
19
+ with :
20
+ release : ${{ github.event.inputs.release == 'true' }}
21
+
22
+ deploy :
23
+ needs :
24
+ - build-test
25
+ if : contains(toJson(github.event.commits), '[deploy]') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'true')
13
26
name : Deploy Docker images
14
27
runs-on : ubuntu-latest
15
28
permissions : write-all
@@ -118,8 +131,8 @@ jobs:
118
131
uses : softprops/action-gh-release@master
119
132
with :
120
133
token : ${{ secrets.GITHUB_TOKEN }}
121
- tag_name : ${{ env.GRID_VERSION }}-${{ env.BUILD_DATE }}
122
- name : ${{ env.GRID_VERSION }}-${{ env.BUILD_DATE }}
134
+ tag_name : " ${{ env.GRID_VERSION }}-${{ env.BUILD_DATE }}"
135
+ name : " ${{ env.GRID_VERSION }}-${{ env.BUILD_DATE }}"
123
136
body_path : " release_notes.md"
124
137
generate_release_notes : true
125
138
prerelease : ${{ env.PRERELEASE }}
Original file line number Diff line number Diff line change 1
1
name : Test Docker Selenium
2
- concurrency :
3
- group : ${{ github.workflow }}
4
2
5
3
on :
4
+ workflow_call :
5
+ inputs :
6
+ release :
7
+ description : ' Test a new release process'
8
+ required : false
9
+ type : boolean
10
+ default : false
6
11
workflow_dispatch :
7
12
inputs :
8
13
request-timeout :
17
22
description : ' Test parameter for different log level'
18
23
required : false
19
24
default : ' INFO'
20
- push :
21
- paths-ignore :
22
- - ' **.md'
23
- pull_request :
24
- paths-ignore :
25
- - ' **.md'
26
25
27
26
permissions :
28
27
contents : read
80
79
- name : Output branch name
81
80
run : echo ${BRANCH}
82
81
- name : Set Selenium base version
83
- if : contains(toJson(github.event.commits), '[deploy]') == false
82
+ if : inputs.release != 'true'
84
83
run : |
85
84
make set_build_nightly
86
85
cat .env | xargs -I {} echo {} >> $GITHUB_ENV
Original file line number Diff line number Diff line change 9
9
paths :
10
10
- ' charts/selenium-grid/Chart.yaml'
11
11
workflow_dispatch :
12
+ inputs :
13
+ release :
14
+ description : ' Deploy a new release'
15
+ required : false
16
+ type : boolean
17
+ default : false
12
18
13
19
jobs :
20
+ helm-chart-test :
21
+ uses : ./.github/workflows/helm-chart-test.yml
22
+ with :
23
+ release : ${{ github.event.inputs.release == 'true' }}
24
+
14
25
release :
26
+ needs :
27
+ - helm-chart-test
15
28
runs-on : ubuntu-latest
16
29
permissions : write-all
17
30
steps :
Original file line number Diff line number Diff line change 1
1
name : Test Helm Charts
2
- concurrency :
3
- group : ${{ github.workflow }}
4
2
5
3
on :
6
- push :
7
- paths-ignore :
8
- - ' **.md'
9
- pull_request :
10
- paths-ignore :
11
- - ' **.md'
4
+ workflow_call :
5
+ inputs :
6
+ release :
7
+ description : ' Test a new release process'
8
+ required : false
9
+ type : boolean
10
+ default : false
12
11
workflow_dispatch :
13
12
inputs :
14
13
request-timeout :
@@ -107,7 +106,7 @@ jobs:
107
106
- name : Output branch name
108
107
run : echo ${BRANCH}
109
108
- name : Set Selenium base version
110
- if : contains(toJson(github.event.commits), '[deploy]') == false
109
+ if : inputs.release != 'true'
111
110
run : |
112
111
make set_build_nightly
113
112
cat .env | xargs -I {} echo {} >> $GITHUB_ENV
Original file line number Diff line number Diff line change 5
5
- cron : ' 0 1 * * *'
6
6
7
7
jobs :
8
- docker -test :
8
+ build -test :
9
9
if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
10
- uses : ./.github/workflows/docker-test.yml
11
-
12
- helm-chart-test :
13
- if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
14
- uses : ./.github/workflows/helm-chart-test.yml
10
+ uses : ./.github/workflows/build-test.yml
11
+ with :
12
+ release : false
15
13
16
14
deploy :
15
+ needs :
16
+ - build-test
17
17
if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
18
18
name : Nightly build
19
19
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
1
[ ![ Build & test] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/build-test.yml/badge.svg )] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/build-test.yml )
2
- [ ![ Test Docker Selenium] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/test-video.yml/badge.svg )] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/test-video.yml )
3
- [ ![ Test Helm Charts] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/helm-chart-test.yml/badge.svg )] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/helm-chart-test.yml )
4
2
[ ![ Deploys] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/deploy.yml/badge.svg )] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/deploy.yml )
5
3
[ ![ Release Charts] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/helm-chart-release.yml/badge.svg )] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/helm-chart-release.yml )
6
- [ ![ Nightly] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/nightly.yaml /badge.svg )] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/nightly.yaml )
4
+ [ ![ Nightly] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/nightly.yml /badge.svg )] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/nightly.yml )
7
5
[ ![ Update Dev/Beta Browser Images] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/update-dev-beta-browser-images.yml/badge.svg )] ( https://github.com/SeleniumHQ/docker-selenium/actions/workflows/update-dev-beta-browser-images.yml )
8
6
9
7
# Docker images for the Selenium Grid Server
@@ -55,6 +53,7 @@ Talk to us at https://www.selenium.dev/support/
55
53
* [ SE_OPTS Selenium Configuration Options] ( #se_opts-selenium-configuration-options )
56
54
* [ SE_JAVA_OPTS Java Environment Options] ( #se_java_opts-java-environment-options )
57
55
* [ Node configuration options] ( #node-configuration-options )
56
+ * [ Node configuration relay commands] ( #node-configuration-relay-commands )
58
57
* [ Setting Sub Path] ( #setting-sub-path )
59
58
* [ Setting Screen Resolution] ( #setting-screen-resolution )
60
59
* [ Grid Url and Session Timeout] ( #grid-url-and-session-timeout )
You can’t perform that action at this time.
0 commit comments