File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 57
57
uses : actions/setup-go@v2
58
58
with :
59
59
go-version : 1.22
60
+ - name : Set up Node.js
61
+ uses : actions/setup-node@v2
62
+ with :
63
+ node-version : ' 18'
64
+ - name : Install npm packages and build UI
65
+ working-directory : ./ui
66
+ run : |
67
+ npm install
68
+ # Using 'CI=false' prevents build errors due to warnings.
69
+ # It bypasses the 'process.env.CI = true' setting in CI environments
70
+ # that treats warnings as errors, ensuring a successful build.
71
+ CI=false npm run build
72
+ touch build/.gitkeep
60
73
# Get version information
61
74
- name : Get version
62
75
id : get_version
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ COPY --from=portal-builder /src/ui/build /src/ui/build
11
11
WORKDIR /src
12
12
RUN --mount=type=cache,target=/go/pkg --mount=type=cache,target=/root/.cache/go-build SKIP_BUILD_PORTAL=true make build-local-linux
13
13
14
- FROM ubuntu:22.04 AS base
14
+ FROM --platform=linux/amd64 ubuntu:22.04 AS base
15
15
# Install KCL Dependencies
16
- RUN apt-get update -y && apt-get install python3 python3-pip -y
16
+ RUN apt-get update -y && apt-get install python3 python3-pip git -y
17
17
# KCL PATH
18
18
ENV PATH="/root/go/bin:${PATH}"
19
19
# KUSION
@@ -26,5 +26,4 @@ RUN /usr/local/bin/kusion
26
26
27
27
FROM base
28
28
COPY --from=build /src/_build/bundles/kusion-linux/bin/kusion /usr/local/bin/kusion
29
- COPY --from=build /src/ui/build /usr/local/bin/ui/build
30
- RUN /usr/local/bin/kusion
29
+ RUN /usr/local/bin/kusion
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ require (
86
86
k8s.io/utils v0.0.0-20240821151609-f90d01438635
87
87
kcl-lang.io/kcl-go v0.10.0-alpha.3
88
88
kcl-lang.io/kcl-plugin v0.5.0
89
- kcl-lang.io/kpm v0.9.5
89
+ kcl-lang.io/kpm v0.9.9
90
90
kusionstack.io/kube-api v0.3.1
91
91
kusionstack.io/kusion-api-go v0.13.0
92
92
kusionstack.io/kusion-module-framework v0.2.3-beta.9
Original file line number Diff line number Diff line change @@ -1829,8 +1829,8 @@ kcl-lang.io/kcl-go v0.10.0-alpha.3 h1:01grUuyy/XfBZDRoMqUesU6OdzVPk0WF9WDOvuY70Z
1829
1829
kcl-lang.io/kcl-go v0.10.0-alpha.3 /go.mod h1:kfHDBqsLNT+9T6VorS/EVbriZzix1rjIq0w6WCJ7GbA =
1830
1830
kcl-lang.io/kcl-plugin v0.5.0 h1:eoh6y4l81rwA8yhJXU4hN7YmJeTUNB1nfYCP9OffSxc =
1831
1831
kcl-lang.io/kcl-plugin v0.5.0 /go.mod h1:QnZ5OLcyBw5nOnHpChRHtvBq8wvjwiHu/ZZ8j1dfz48 =
1832
- kcl-lang.io/kpm v0.9.5 h1:BvSVj1U2mqWJIpciCK7Wg1mV1hhkeE5xPqcBaOxURh4 =
1833
- kcl-lang.io/kpm v0.9.5 /go.mod h1:4HTbPhB4DVtkamnIv5lrRcHtCVwzp4Pf/b+d3TN4nzs =
1832
+ kcl-lang.io/kpm v0.9.9 h1:87A+Mp9pKtdLz6qtngdmDjkpTg9I4MIGJ93rtzjRTlk =
1833
+ kcl-lang.io/kpm v0.9.9 /go.mod h1:4HTbPhB4DVtkamnIv5lrRcHtCVwzp4Pf/b+d3TN4nzs =
1834
1834
kcl-lang.io/lib v0.10.0-alpha.3 h1:tZ7du+9/wv5ZHyPmPxljZQ33DdTYw++d9joH0LMC3q8 =
1835
1835
kcl-lang.io/lib v0.10.0-alpha.3 /go.mod h1:tu+tzwGgHLzYZSIxUG/ntipStrxZd6OvutWYPTxS7cs =
1836
1836
kusionstack.io/kube-api v0.3.1 h1:MqU41B0i2cofm2M5KQIkuTsWQ81p0Ueq93zbdUaOuCM =
You can’t perform that action at this time.
0 commit comments