File tree Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 20
20
shell : sh
21
21
22
22
- name : Build the frontend assets
23
- # :tchap:
24
- # run: npm run build
25
- run : npm run build-tchap
26
- # :tchap:
23
+ run : npm run build
27
24
working-directory : ./frontend
28
25
shell : sh
Original file line number Diff line number Diff line change 3
3
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
4
4
# Please see LICENSE files in the repository root for full details.
5
5
6
+
7
+ # :tchap:
8
+ # the only job used by tchap are `compute-version` and `build-image`
9
+ # :tchap:
10
+
6
11
name : Build
7
12
8
13
on :
81
86
cp -r frontend/dist/ assets-dist/share/assets
82
87
cp -r templates/ assets-dist/share/templates
83
88
cp -r translations/ assets-dist/share/translations
84
- #:tchap:
85
- cp -r tchap/resources/templates/* assets-dist/share/templates/
86
- cp -r tchap/resources/translations/* assets-dist/share/translations/
87
- #:tchap: end
88
89
cp LICENSE assets-dist/LICENSE
89
90
chmod -R u=rwX,go=rX assets-dist/
90
91
Original file line number Diff line number Diff line change 9
9
# implicit BUILDARG: BUILDPLATFORM being the host platform and TARGETPLATFORM
10
10
# being the platform being built.
11
11
12
+ # :tchap:
13
+ # tchap files are added to this image (templates, translations, css)
14
+ # :tchap:
15
+
12
16
# The Debian version and version name must be in sync
13
17
ARG DEBIAN_VERSION=12
14
18
ARG DEBIAN_VERSION_NAME=bookworm
@@ -32,7 +36,9 @@ RUN --network=default \
32
36
COPY ./frontend/ /app/frontend/
33
37
COPY ./templates/ /app/templates/
34
38
RUN --network=none \
35
- npm run build
39
+ # :tchap:
40
+ npm run build-tchap
41
+ # :tchap:
36
42
37
43
# Move the built files
38
44
RUN --network=none \
@@ -141,6 +147,12 @@ COPY --from=policy /app/policies/policy.wasm /share/policy.wasm
141
147
COPY ./templates/ /share/templates
142
148
COPY ./translations/ /share/translations
143
149
150
+ # :tchap:
151
+ COPY ./tchap/resources/templates/ /share/templates/
152
+ COPY ./tchap/resources/translations/ /share/translations/
153
+ # :tchap:
154
+
155
+
144
156
# #################################
145
157
# # Runtime stage, debug variant ##
146
158
# #################################
You can’t perform that action at this time.
0 commit comments