Fix Aurask release workflow build paths
All checks were successful
aurask-release / build-and-deploy (push) Successful in 1m55s

This commit is contained in:
Aaron 2026-04-19 17:15:20 +08:00
parent 0e344eb74a
commit d7a836a041
2 changed files with 6 additions and 5 deletions

View File

@ -6,10 +6,11 @@ on:
- master - master
paths: paths:
- .gitea/workflows/aurask-release.yml - .gitea/workflows/aurask-release.yml
- api/**
- deploy/images/aurask-api/** - deploy/images/aurask-api/**
- deploy/images/aurask-web/** - deploy/images/aurask-web/**
- deploy/k3s/base/** - deploy/k3s/base/**
- src/aurask/** - deploy/k3s/README.md
- tests/** - tests/**
- pyproject.toml - pyproject.toml
- README.md - README.md
@ -41,7 +42,7 @@ jobs:
- name: Run unit tests - name: Run unit tests
env: env:
PYTHONPATH: src PYTHONPATH: api
run: | run: |
python3 -m unittest discover -s tests -v python3 -m unittest discover -s tests -v

View File

@ -2,16 +2,16 @@ FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \ ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \ PYTHONUNBUFFERED=1 \
PYTHONPATH=/app/src PYTHONPATH=/app/api
WORKDIR /app WORKDIR /app
RUN useradd --system --create-home --uid 10001 aurask RUN useradd --system --create-home --uid 10001 aurask
COPY pyproject.toml README.md /app/ COPY pyproject.toml README.md /app/
COPY src /app/src COPY api /app/api
RUN python -m compileall /app/src && \ RUN python -m compileall /app/api && \
install -d -o aurask -g aurask /data install -d -o aurask -g aurask /data
USER aurask USER aurask