File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,15 @@ ARG TARGETOS
9
9
RUN apk add --update --upgrade ca-certificates
10
10
11
11
RUN adduser -D -u 1000 tinkerbell
12
- USER tinkerbell
13
12
14
- COPY --chown=tinkerbell ./hegel-$TARGETOS-$TARGETARCH /usr/bin/hegel
13
+ COPY ./hegel-$TARGETOS-$TARGETARCH /usr/bin/hegel
14
+
15
+ # Github's artifact upload action doesn't preserve permissions. While this is a Github specific
16
+ # problem, there's no succinct way to fix it in the actions as we build for multiple platforms.
17
+ # For now, we'll suffer the extra layer and just chmod the binary.
18
+ RUN chmod +x /usr/bin/hegel
19
+
20
+ # Switching to the tinkerbell user should be done as late as possible so we still use root to
21
+ # perform the other commands.
22
+ USER tinkerbell
15
23
ENTRYPOINT ["/usr/bin/hegel" ]
You can’t perform that action at this time.
0 commit comments