From bc5f774d9fc50a164246234a3462fe975da17432 Mon Sep 17 00:00:00 2001 From: ab Date: Sun, 20 Oct 2024 22:43:31 +0000 Subject: [PATCH] fix ci --- .github/workflows/main.yml | 4 ++-- Dockerfile | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f68717..98424b1 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: Docker hub build on: push: branches: - - 'master' + - 'django' jobs: docker: @@ -33,4 +33,4 @@ jobs: with: platforms: linux/amd64,linux/arm64 push: true - tags: ultradesu/outfleet:latest,ultradesu/outfleet:${{ steps.vars.outputs.sha_short }} + tags: ultradesu/outfleet:v2,ultradesu/outfleet:${{ steps.vars.outputs.sha_short }} diff --git a/Dockerfile b/Dockerfile index e2b75eb..969e59d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ FROM python:3 WORKDIR /app -COPY requirements.txt ./ -RUN pip install --no-cache-dir -r requirements.txt - +#COPY requirements.txt ./ COPY . . +RUN pip install --no-cache-dir -r requirements.txt +RUN python manage.py collectstatic --noinput + CMD [ "python", "./manage.py", "runserver", "0.0.0.0:8000" ]