14 Commits

Author SHA1 Message Date
8d143c281a Please forgive me
All checks were successful
Test with Pytest / test (push) Successful in 22s
Release Notification / Send Notification (release) Successful in 5s
2025-11-05 09:59:10 +02:00
0e74631891 TDD: 1, Me: 0
All checks were successful
Test with Pytest / test (push) Successful in 23s
Release Notification / Send Notification (release) Successful in 4s
2025-11-05 09:48:28 +02:00
d87b43c377 I CAN HAZ PYTHON, I CAN HAZ INDENTS
All checks were successful
Test with Pytest / test (push) Successful in 23s
Release Notification / Send Notification (release) Successful in 4s
2025-11-05 09:37:34 +02:00
36dfd89908 Copy-paste to fix previous copy-paste
All checks were successful
Test with Pytest / test (push) Successful in 25s
Release Notification / Send Notification (release) Successful in 4s
2025-11-05 02:33:45 +02:00
855cb45fa3 more ignores
All checks were successful
Test with Pytest / test (push) Successful in 25s
2025-11-05 01:36:50 +02:00
28be30812b I would rather be playing Hell Divers 2. 2025-11-05 01:22:28 +02:00
862bec0dfd Love coding? here's the secret reason why 2025-11-05 01:07:18 +02:00
fc253de73b Make that it works in 90% of the cases. 3:30. 2025-11-05 00:11:47 +02:00
e7f02ae36e ??! what the ... 2025-11-04 23:49:39 +02:00
c3ba17074e Check next commit for message. 2025-11-04 23:24:18 +02:00
b2ceef9201 To be honest, I do not quite remember everything I changed here today. But it is all good, I tell ya. 2025-11-04 22:50:10 +02:00
7779a7e423 tagging release w.t.f. 2025-11-04 22:24:12 +02:00
b5d32ce9b4 WIP, always 2025-11-04 22:09:43 +02:00
6f95d00faf A long time ago, in a galaxy far far away... 2025-11-04 21:45:18 +02:00
2 changed files with 18 additions and 33 deletions

View File

@@ -23,11 +23,11 @@ jobs:
with: with:
python-version: '3.14' python-version: '3.14'
- name: Install QEMU (arm) # - name: Install QEMU (arm)
if: matrix.arch == 'arm64' # if: matrix.arch == 'arm64'
uses: docker/setup-qemu-action@v3 # uses: docker/setup-qemu-action@v3
with: # with:
platforms: arm64 # platforms: arm64
- name: Set up Docker Buildx (arm) - name: Set up Docker Buildx (arm)
if: matrix.arch == 'arm64' if: matrix.arch == 'arm64'
@@ -40,16 +40,16 @@ jobs:
if [ "${{ matrix.arch }}" = "x86_64" ]; then if [ "${{ matrix.arch }}" = "x86_64" ]; then
pip install -r requirements.txt pip install -r requirements.txt
cd app cd app
pyinstaller --onefile --add-data "ui:ui" wolServer.py pyinstaller --onefile --add-data "ui:ui" --name wolServer-${{ matrix.arch }} wolServer.py
else else
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" wolServer.py \ && pyinstaller --onefile --add-data "ui:ui" --name wolServer-${{ matrix.arch }} wolServer.py \
&& mkdir -p /output && cp /app/app/dist/wolServer /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 .
@@ -58,30 +58,19 @@ jobs:
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: executable-${{ matrix.arch }} name: wolServer-${{ matrix.arch }}
path: app/dist path: app/dist/**
release: release:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Create Dist Directory
run: mkdir -p app/dist
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
path: app/dist path: app/dist
- name: Rename Artifacts
run: |
mv app/dist/executable-x86_64/wolServer app/dist/wolServer-x86_64
mv app/dist/executable-arm64/wolServer app/dist/wolServer-arm
- name: Generate Tag - name: Generate Tag
id: tag id: tag
run: echo "TAG=v$(TZ='Europe/Athens' date +'%d%m%Y%H%M%S')" >> $GITEA_ENV run: echo "TAG=v$(TZ='Europe/Athens' date +'%d%m%Y%H%M%S')" >> $GITEA_ENV
@@ -95,7 +84,7 @@ jobs:
body: "Automated push release" body: "Automated push release"
token: ${{ secrets.mytoken }} token: ${{ secrets.mytoken }}
files: |- files: |-
app/dist/wolServer-* /workspace/konsthol/WOL-Ly/app/dist
cleanup: cleanup:
needs: release needs: release
@@ -104,12 +93,8 @@ jobs:
steps: steps:
- name: Cleanup Buildx Containers - name: Cleanup Buildx Containers
run: | run: |
docker ps -q --filter "name=buildx" | xargs -r docker stop #docker images --filter "reference=moby/buildkit" -q | xargs -r docker rmi
docker ps -aq --filter "name=buildx" | xargs -r docker rm #docker images --filter "reference=tonistiigi/binfmt" -q | xargs -r docker rmi
docker images --filter "reference=moby/buildkit" -q | xargs -r docker rmi
docker images --filter "reference=arm-builder" -q | xargs -r docker rmi
docker images --filter "reference=multiarch/qemu-user-static" -q | xargs -r docker rmi
docker images --filter "reference=tonistiigi/binfmt" -q | xargs -r docker rmi
docker volume ls --filter "name=buildx" -q | xargs -r docker volume rm
#docker images --filter "reference=gitea/runner-images" -q | xargs -r docker rmi #docker images --filter "reference=gitea/runner-images" -q | xargs -r docker rmi
#docker volume ls --filter "name=act" -q | xargs -r docker volume rm #docker volume ls --filter "name=act" -q | xargs -r docker volume rm

View File

@@ -7,7 +7,7 @@ openssl x509 -req -days 365 -in app/certs/cert.csr -signkey app/certs/cert.key -
LOCATION="$(pwd)" LOCATION="$(pwd)"
cat << EOF > $LOCATION/app/.env cat << EOF > "$LOCATION/app/.env"
# Environment variables # Environment variables
WOL_SECRET_KEY="changethis" WOL_SECRET_KEY="changethis"
WOL_USER_PASS="changethat" WOL_USER_PASS="changethat"
@@ -44,7 +44,7 @@ LATEST_RELEASE="$(curl -s https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/r
if [ "$ARCH" = "x86_64" ]; then if [ "$ARCH" = "x86_64" ]; then
wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/"$LATEST_RELEASE"/wolServer-x86_64 wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/"$LATEST_RELEASE"/wolServer-x86_64
elif [ "$ARCH" = "aarch64" ]; then elif [ "$ARCH" = "aarch64" ]; then
wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/"$LATEST_RELEASE"/wolServer-arm wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/"$LATEST_RELEASE"/wolServer-arm64
fi fi
chmod +x app/wolServer chmod +x app/wolServer