From acb3012547da35f8ed2eda8684a9337f613e51ad Mon Sep 17 00:00:00 2001 From: Mahmoud Nasr <239.nasr@gmail.com> Date: Sat, 14 Jun 2025 19:36:22 +0300 Subject: [PATCH 1/2] Update docker-build.yml --- .github/workflows/docker-build.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index a38b6f2..1b26280 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -1,14 +1,6 @@ name: Docker Build and Push on: - push: - branches: [main] - paths-ignore: - - "**.md" - - "docs/**" - - "README.md" - - ".gitignore" - - ".env.example" pull_request: types: [closed] branches: [main] @@ -27,10 +19,8 @@ env: jobs: build-and-push: - # Fixed conditional logic to handle both push and PR events properly - if: | - (github.event_name == 'push' && github.ref == 'refs/heads/main') || - (github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main') + # Only run when a PR is successfully merged to main + if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' runs-on: ubuntu-latest permissions: contents: read From f8e6a0281a89aebf3a787b93c411e87044cec9ba Mon Sep 17 00:00:00 2001 From: Mahmoud Nasr <239.nasr@gmail.com> Date: Sat, 14 Jun 2025 19:45:28 +0300 Subject: [PATCH 2/2] updated req --- Dockerfile | 2 ++ requirements.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 955bd8a..bb1a411 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y \ libpq-dev \ gcc \ python3-dev \ + curl \ + wget \ && rm -rf /var/lib/apt/lists/* # Copy requirements first to leverage Docker cache diff --git a/requirements.txt b/requirements.txt index 36ead9b..1bf2b19 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,5 +9,6 @@ alembic==1.12.1 python-multipart==0.0.6 pydantic==2.6.1 pydantic-settings==2.1.0 +huggingface-hub==0.10.0 sentence-transformers~=2.2.2 scikit-learn~=1.3.2 \ No newline at end of file