Skip to content

Commit 402c365

Browse files
committed
chore: bump node version and set openssl-legacy-provider (#2606)
* bump node version Signed-off-by: zachaller <zachaller@users.noreply.github.com> * add legacy flag as a workaround Signed-off-by: zachaller <zachaller@users.noreply.github.com> --------- Signed-off-by: zachaller <zachaller@users.noreply.github.com>
1 parent 50b80f2 commit 402c365

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN cd ${GOPATH}/src/dummy && \
2424
####################################################################################################
2525
# UI build stage
2626
####################################################################################################
27-
FROM --platform=$BUILDPLATFORM docker.io/library/node:12.18.4 as argo-rollouts-ui
27+
FROM --platform=$BUILDPLATFORM docker.io/library/node:18 as argo-rollouts-ui
2828

2929
WORKDIR /src
3030
ADD ["ui/package.json", "ui/yarn.lock", "./"]

ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"start": "webpack serve --config ./src/app/webpack.dev.js",
24-
"build": "rm -rf dist && webpack --config ./src/app/webpack.prod.js",
24+
"build": "rm -rf dist && NODE_OPTIONS=--openssl-legacy-provider webpack --config ./src/app/webpack.prod.js",
2525
"test": "react-scripts test",
2626
"eject": "react-scripts eject",
2727
"protogen": "../hack/swagger-codegen.sh generate -i ../pkg/apiclient/rollout/rollout.swagger.json -l typescript-fetch -o src/models/rollout/generated"

0 commit comments

Comments
 (0)