mirror of
https://18126008609:longquanjian123@gitee.com/feigong123/aurask.git
synced 2026-04-19 13:38:24 +00:00
Fix Aurask release workflow build paths
All checks were successful
aurask-release / build-and-deploy (push) Successful in 1m55s
All checks were successful
aurask-release / build-and-deploy (push) Successful in 1m55s
This commit is contained in:
parent
0e344eb74a
commit
d7a836a041
@ -6,10 +6,11 @@ on:
|
||||
- master
|
||||
paths:
|
||||
- .gitea/workflows/aurask-release.yml
|
||||
- api/**
|
||||
- deploy/images/aurask-api/**
|
||||
- deploy/images/aurask-web/**
|
||||
- deploy/k3s/base/**
|
||||
- src/aurask/**
|
||||
- deploy/k3s/README.md
|
||||
- tests/**
|
||||
- pyproject.toml
|
||||
- README.md
|
||||
@ -41,7 +42,7 @@ jobs:
|
||||
|
||||
- name: Run unit tests
|
||||
env:
|
||||
PYTHONPATH: src
|
||||
PYTHONPATH: api
|
||||
run: |
|
||||
python3 -m unittest discover -s tests -v
|
||||
|
||||
|
||||
@ -2,16 +2,16 @@ FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PYTHONPATH=/app/src
|
||||
PYTHONPATH=/app/api
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN useradd --system --create-home --uid 10001 aurask
|
||||
|
||||
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
|
||||
|
||||
USER aurask
|
||||
|
||||
Loading…
Reference in New Issue
Block a user