Fix incorrect timestamp on Eartlhy packaged binary (#3955)

This commit is contained in:
mahmed2000 2024-10-11 15:31:44 +00:00 committed by GitHub
parent eec9317b93
commit deb938d521
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,7 +87,7 @@ build:
RUN upx -t owncast RUN upx -t owncast
END END
SAVE ARTIFACT owncast owncast SAVE ARTIFACT --keep-ts owncast owncast
package: package:
RUN apk add --update --no-cache zip >> /dev/null RUN apk add --update --no-cache zip >> /dev/null
@ -109,7 +109,7 @@ package:
ARG NAME=custom ARG NAME=custom
END END
COPY (+build/owncast --platform $TARGETPLATFORM) /build/dist/owncast COPY --keep-ts (+build/owncast --platform $TARGETPLATFORM) /build/dist/owncast
ENV ZIPNAME owncast-$version-$NAME.zip ENV ZIPNAME owncast-$version-$NAME.zip
RUN cd /build/dist && zip -r -q -8 /build/dist/owncast.zip . RUN cd /build/dist && zip -r -q -8 /build/dist/owncast.zip .
SAVE ARTIFACT --keep-ts /build/dist/owncast.zip owncast.zip AS LOCAL dist/$ZIPNAME SAVE ARTIFACT --keep-ts /build/dist/owncast.zip owncast.zip AS LOCAL dist/$ZIPNAME
@ -123,7 +123,7 @@ docker:
RUN apk update && apk add --no-cache ffmpeg ffmpeg-libs ca-certificates unzip && update-ca-certificates RUN apk update && apk add --no-cache ffmpeg ffmpeg-libs ca-certificates unzip && update-ca-certificates
RUN addgroup -g 101 -S owncast && adduser -u 101 -S owncast -G owncast RUN addgroup -g 101 -S owncast && adduser -u 101 -S owncast -G owncast
WORKDIR /app WORKDIR /app
COPY --platform=$TARGETPLATFORM +package/owncast.zip /app COPY --keep-ts --platform=$TARGETPLATFORM +package/owncast.zip /app
RUN unzip -x owncast.zip && mkdir data RUN unzip -x owncast.zip && mkdir data
# temporarily disable until we figure out how to move forward # temporarily disable until we figure out how to move forward