File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ WORKDIR /headlamp-plugins
8
8
# Add multi-arch build arguments
9
9
ARG PLUGIN
10
10
ARG TARGETPLATFORM
11
- ARG TARGETOS
12
11
ARG TARGETARCH
13
12
14
13
# Check if the PLUGIN argument is provided
@@ -17,6 +16,12 @@ RUN if [ -z "$PLUGIN" ]; then \
17
16
exit 1; \
18
17
fi
19
18
19
+ # Enforce that TARGETARCH is specified
20
+ RUN if [ -z "$TARGETARCH" ]; then \
21
+ echo "Error: TARGETARCH argument is required" ; \
22
+ exit 1; \
23
+ fi
24
+
20
25
# Create a directory for the plugin build
21
26
RUN mkdir -p /headlamp-plugins/build/${PLUGIN}
22
27
@@ -48,4 +53,4 @@ LABEL org.opencontainers.image.licenses=MIT
48
53
LABEL org.opencontainers.image.platform=$TARGETPLATFORM
49
54
50
55
# Set the default command to list the installed plugins
51
- CMD ["sh" , "-c" , "echo Plugins installed at /plugins/:; ls /plugins/" ]
56
+ CMD ["sh" , "-c" , "echo Plugins installed at /plugins/:; ls /plugins/" ]
You can’t perform that action at this time.
0 commit comments