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 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