File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed
Servers/UI/OJS.Servers.Ui/ClientApp Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,25 @@ name: 05. Deploy FE (Development)
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ build_variant :
7
+ description : ' Select the Yarn build variant'
8
+ required : false
9
+ default : ' build:staging'
10
+ type : choice
11
+ options :
12
+ - build:staging
13
+ - build:staging:unminified
5
14
workflow_call :
6
15
inputs :
7
16
branch_name :
8
17
description : ' The branch that will be deployed'
9
18
required : false
10
19
type : string
20
+ build_variant :
21
+ default : ' build:staging'
22
+ required : false
23
+ type : string
11
24
jobs :
12
25
build-and-push :
13
26
uses : ./.github/workflows/build-and-push.yml
16
29
dockerfile_name : Dockerfile.fe
17
30
docker_tag : dev-latest
18
31
branch_name : ${{ inputs.branch_name || 'v2-development' }}
19
- build_args : YARN_BUILD_COMMAND=build:staging
32
+ build_args : YARN_BUILD_COMMAND=${{ inputs.build_variant }}
20
33
additional_run_commands : |
21
34
export NODE_OPTIONS=--max-old-space-size=8192
22
35
secrets : inherit
Original file line number Diff line number Diff line change 8
8
required : true
9
9
default : " latest"
10
10
type : string
11
+ build_variant :
12
+ description : ' Select the Yarn build variant'
13
+ required : false
14
+ default : ' build'
15
+ type : choice
16
+ options :
17
+ - build
18
+ - build:unminified
11
19
workflow_call :
12
20
inputs :
13
21
docker_image_tag :
17
25
description : ' The branch that will be deployed'
18
26
required : false
19
27
type : string
28
+ build_variant :
29
+ default : ' build'
30
+ required : false
31
+ type : string
20
32
jobs :
21
33
check-user-access :
22
34
runs-on : ubuntu-latest
39
51
dockerfile_name : Dockerfile.fe
40
52
docker_tag : ${{ inputs.docker_image_tag }}
41
53
branch_name : ${{ inputs.branch_name || 'v2' }}
42
- build_args : YARN_BUILD_COMMAND=build
54
+ build_args : YARN_BUILD_COMMAND=${{ inputs.build_variant }}
43
55
additional_run_commands : |
44
56
echo "NODE_OPTIONS=--max_old_space_size=8192" >> $GITHUB_ENV
45
57
export NODE_OPTIONS=--max-old-space-size=8192
Original file line number Diff line number Diff line change 85
85
"start" : " vite" ,
86
86
"build" : " vite build" ,
87
87
"build:unminified" : " cross-env UNMINIFIED=true vite build" ,
88
- "build:staging" : " cross-env UNMINIFIED=true vite build --mode staging" ,
88
+ "build:staging" : " vite build --mode staging" ,
89
+ "build:staging:unminified" : " cross-env UNMINIFIED=true vite build --mode staging" ,
89
90
"build:local" : " vite build --mode development.local" ,
90
91
"eject" : " react-scripts eject" ,
91
92
"lint:eslint" : " ./node_modules/.bin/eslint ./src --ext .tsx --ext .ts" ,
You can’t perform that action at this time.
0 commit comments