mirror of
https://18126008609:longquanjian123@gitee.com/feigong123/aurask.git
synced 2026-04-19 16:40:33 +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
|
- 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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user