Love coding? here's the secret reason why

This commit is contained in:
2025-11-05 01:07:18 +02:00
parent fc253de73b
commit 862bec0dfd

View File

@@ -45,11 +45,11 @@ jobs:
echo 'FROM arm64v8/python:3.13-slim-bullseye AS builder echo 'FROM arm64v8/python:3.13-slim-bullseye AS builder
WORKDIR /app WORKDIR /app
COPY requirements.txt . COPY requirements.txt .
COPY app ./app COPY app .
RUN apt-get update && apt-get install -y --no-install-recommends binutils \ RUN apt-get update && apt-get install -y --no-install-recommends binutils \
&& pip install -r /app/requirements.txt \ && pip install -r requirements.txt \
&& cd /app/app && pyinstaller --onefile --add-data "ui:ui" --name wolServer-${{ matrix.arch }} wolServer.py \ && pyinstaller --onefile --add-data "ui:ui" --name wolServer-${{ matrix.arch }} wolServer.py \
&& mkdir -p /output && cp /app/app/dist/wolServer-${{ matrix.arch }} /output/ && mkdir -p /output && cp dist/wolServer-${{ matrix.arch }} /output/
FROM scratch FROM scratch
COPY --from=builder /output /output' > Dockerfile COPY --from=builder /output /output' > Dockerfile
docker buildx build --platform linux/arm64/v8 --output type=local,dest=app/dist . docker buildx build --platform linux/arm64/v8 --output type=local,dest=app/dist .
@@ -59,7 +59,7 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: wolServer-${{ matrix.arch }} name: wolServer-${{ matrix.arch }}
path: app/dist/** path: app/dist/wolServer-${{ matrix.arch }}
release: release:
needs: build needs: build
@@ -84,7 +84,7 @@ jobs:
body: "Automated push release" body: "Automated push release"
token: ${{ secrets.mytoken }} token: ${{ secrets.mytoken }}
files: |- files: |-
/workspace/konsthol/WOL-Ly/app/dist/ wolServer-*
cleanup: cleanup:
needs: release needs: release