diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e4cef55d..30deef9e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: release-job: - name: Build and publish on PyPi + name: Build and publish on PyPi and Docker Hub runs-on: ubuntu-latest environment: release steps: @@ -46,6 +46,7 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v5 with: + context: . push: true tags: | lapp0/outlines-serve:latest diff --git a/Dockerfile b/Dockerfile index 19b9db3bf..84f50d557 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /outlines RUN pip install --upgrade pip # Copy necessary build components -COPY .git ./.git +COPY .git ./.git # required by setuptools-scm COPY pyproject.toml . COPY outlines ./outlines