Check next commit for message.
This commit is contained in:
@@ -40,7 +40,7 @@ jobs:
|
||||
if [ "${{ matrix.arch }}" = "x86_64" ]; then
|
||||
pip install -r requirements.txt
|
||||
cd app
|
||||
pyinstaller --onefile --add-data "ui:ui" wolServer.py
|
||||
pyinstaller --onefile --add-data "ui:ui" --name wolServer-${{ matrix.arch }} wolServer.py
|
||||
else
|
||||
echo 'FROM arm64v8/python:3.13-slim-bullseye AS builder
|
||||
WORKDIR /app
|
||||
@@ -48,8 +48,8 @@ jobs:
|
||||
COPY app ./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" wolServer.py \
|
||||
&& mkdir -p /output && cp /app/app/dist/wolServer /output/
|
||||
&& 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/
|
||||
FROM scratch
|
||||
COPY --from=builder /output /output' > Dockerfile
|
||||
docker buildx build --platform linux/arm64/v8 --output type=local,dest=app/dist .
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: executable-${{ matrix.arch }}
|
||||
name: wolServer-${{ matrix.arch }}
|
||||
path: app/dist/**
|
||||
|
||||
release:
|
||||
@@ -66,22 +66,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Create Dist Directory
|
||||
run: mkdir -p app/dist
|
||||
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: app/dist
|
||||
|
||||
- name: Rename Artifacts
|
||||
run: |
|
||||
mv app/dist/executable-x86_64 app/dist/wolServer-x86_64
|
||||
mv app/dist/executable-arm64 app/dist/wolServer-arm
|
||||
|
||||
- name: Generate Tag
|
||||
id: tag
|
||||
run: echo "TAG=v$(TZ='Europe/Athens' date +'%d%m%Y%H%M%S')" >> $GITEA_ENV
|
||||
@@ -96,7 +85,7 @@ jobs:
|
||||
token: ${{ secrets.mytoken }}
|
||||
files: |-
|
||||
app/dist/wolServer-x86_64
|
||||
app/dist/wolServer-arm
|
||||
app/dist/wolServer-arm64
|
||||
|
||||
cleanup:
|
||||
needs: release
|
||||
|
||||
Reference in New Issue
Block a user