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