Skip to content

Commit

Permalink
dockerx build platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
dorukgezici committed Oct 17, 2024
1 parent 19897f7 commit eb45526
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/prefect-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Tailscale
uses: tailscale/github-action@v2
with:
Expand Down
3 changes: 1 addition & 2 deletions backend/Dockerfile.prefect
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM prefecthq/prefect:3.0.10-python3.12-kubernetes AS base
FROM prefecthq/prefect:3.0.9-python3.12-kubernetes AS base
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
WORKDIR /app
COPY subabot/__init__.py pyproject.toml uv.lock README.md ./
Expand All @@ -7,4 +7,3 @@ RUN uv sync --frozen
FROM base AS runtime
ENV PYTHONUNBUFFERED=1
COPY subabot/ ./subabot/
CMD ["source", ".venv/bin/activate"]
2 changes: 1 addition & 1 deletion backend/prefect.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: subabot
prefect-version: 3.0.10
prefect-version: 3.0.9

build:
- prefect.deployments.steps.run_shell_script:
Expand Down
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
"python-multipart>=0.0.12",
"python-slugify>=8.0.4",
"slack_sdk>=3.33.1",
"prefect[docker]==3.0.10",
"prefect[docker]==3.0.9",
"supabase>=2.9.0",
"sqlmodel>=0.0.22",
"python-dotenv>=1.0.1",
Expand Down
3 changes: 2 additions & 1 deletion backend/subabot/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from subabot.config import FRONTEND_URL
from subabot.db import engine
from subabot.rss.router import router as rss_router
from subabot.slack.app import app as slack_app

app = FastAPI(title="Subabot", version="0.1.0")
app.add_middleware(
Expand All @@ -19,7 +20,7 @@
)

app.include_router(rss_router)
# app.mount("/slack", slack_app)
app.mount("/slack", slack_app)


@app.on_event("startup")
Expand Down
8 changes: 4 additions & 4 deletions backend/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb45526

Please sign in to comment.