Skip to content

Commit 1230c22

Browse files
committed
2 parents fd3a832 + 8ad3813 commit 1230c22

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

.github/workflows/fe-dev-deploy.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,25 @@ name: 05. Deploy FE (Development)
22

33
on:
44
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
514
workflow_call:
615
inputs:
716
branch_name:
817
description: 'The branch that will be deployed'
918
required: false
1019
type: string
20+
build_variant:
21+
default: 'build:staging'
22+
required: false
23+
type: string
1124
jobs:
1225
build-and-push:
1326
uses: ./.github/workflows/build-and-push.yml
@@ -16,7 +29,7 @@ jobs:
1629
dockerfile_name: Dockerfile.fe
1730
docker_tag: dev-latest
1831
branch_name: ${{ inputs.branch_name || 'v2-development' }}
19-
build_args: YARN_BUILD_COMMAND=build:staging
32+
build_args: YARN_BUILD_COMMAND=${{ inputs.build_variant }}
2033
additional_run_commands: |
2134
export NODE_OPTIONS=--max-old-space-size=8192
2235
secrets: inherit

.github/workflows/fe-prod-deploy.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ on:
88
required: true
99
default: "latest"
1010
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
1119
workflow_call:
1220
inputs:
1321
docker_image_tag:
@@ -17,6 +25,10 @@ on:
1725
description: 'The branch that will be deployed'
1826
required: false
1927
type: string
28+
build_variant:
29+
default: 'build'
30+
required: false
31+
type: string
2032
jobs:
2133
check-user-access:
2234
runs-on: ubuntu-latest
@@ -39,7 +51,7 @@ jobs:
3951
dockerfile_name: Dockerfile.fe
4052
docker_tag: ${{ inputs.docker_image_tag }}
4153
branch_name: ${{ inputs.branch_name || 'v2' }}
42-
build_args: YARN_BUILD_COMMAND=build
54+
build_args: YARN_BUILD_COMMAND=${{ inputs.build_variant }}
4355
additional_run_commands: |
4456
echo "NODE_OPTIONS=--max_old_space_size=8192" >> $GITHUB_ENV
4557
export NODE_OPTIONS=--max-old-space-size=8192

Servers/UI/OJS.Servers.Ui/ClientApp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@
8585
"start": "vite",
8686
"build": "vite build",
8787
"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",
8990
"build:local": "vite build --mode development.local",
9091
"eject": "react-scripts eject",
9192
"lint:eslint": "./node_modules/.bin/eslint ./src --ext .tsx --ext .ts",

0 commit comments

Comments
 (0)