File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 13
13
fetch-depth : 0
14
14
15
15
- run : make binaries
16
- env :
17
- CHECKSUM : ' 1 '
16
+
17
+ - run : cd binaries; for f in *; do sha256sum $f > $f.sha256sum; done
18
18
19
19
- uses : actions/upload-artifact@v4
20
20
with :
Original file line number Diff line number Diff line change 13
13
- uses : actions/checkout@v4
14
14
15
15
- run : make binaries
16
- env :
17
- CHECKSUM : ' 1 '
16
+
17
+ - run : cd binaries; for f in *; do sha256sum $f > $f.sha256sum; done
18
18
19
19
- uses : actions/upload-artifact@v4
20
20
with :
Original file line number Diff line number Diff line change 1
1
BINARY_NAME = mediamtx
2
2
3
- ifeq ($(CHECKSUM ) ,1)
4
- define DOCKERFILE_CHECKSUM
5
- RUN cd /s/binaries; for f in *; do sha256sum $$f > $$f.sha256sum; done
6
- endef
7
- endif
8
-
9
3
define DOCKERFILE_BINARIES
10
4
FROM $(BASE_IMAGE ) AS build-base
11
5
RUN apk add --no-cache zip make git tar
@@ -62,7 +56,6 @@ COPY --from=build-darwin-arm64 /s/binaries /s/binaries
62
56
COPY --from=build-linux-armv6 /s/binaries /s/binaries
63
57
COPY --from=build-linux-armv7 /s/binaries /s/binaries
64
58
COPY --from=build-linux-arm64 /s/binaries /s/binaries
65
- $(DOCKERFILE_CHECKSUM )
66
59
endef
67
60
export DOCKERFILE_BINARIES
68
61
@@ -71,3 +64,4 @@ binaries:
71
64
-t temp
72
65
docker run --rm -v " $( shell pwd) :/out" \
73
66
temp sh -c " rm -rf /out/binaries && cp -r /s/binaries /out/"
67
+ sudo chown -R $(shell id -u) :$(shell id -g) binaries
You can’t perform that action at this time.
0 commit comments