Fix Docker Builds in CI (#21)
All checks were successful
Check / Backend (push) Successful in 8m44s
Check / Frontend (push) Successful in 36s
Docker Build / Build and Push Backend Image (push) Successful in 5m27s
Docker Build / Build and Push Frontend Image (push) Successful in 1m59s

Reviewed-on: #21
Co-authored-by: Drew Galbraith <drew@tiramisu.one>
Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
Drew 2025-11-30 06:08:48 +00:00 committed by Drew
parent 15fabd126e
commit 16f37e3802
2 changed files with 9 additions and 5 deletions

View file

@ -11,8 +11,10 @@ jobs:
steps: steps:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: | - name: Install Docker
apt update && apt install -y docker.io run: |
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to Forgejo Container Registry - name: Login to Forgejo Container Registry
@ -31,8 +33,10 @@ jobs:
steps: steps:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: | - name: Install Docker
apt update && apt install -y docker.io run: |
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to Forgejo Container Registry - name: Login to Forgejo Container Registry

View file

@ -25,7 +25,7 @@ COPY src/ src/
COPY migrations/ migrations/ COPY migrations/ migrations/
# Build the application # Build the application
RUN cargo build --release RUN --mount=source=.sqlx,target=.sqlx cargo build --release
# Runtime stage # Runtime stage
FROM alpine:latest FROM alpine:latest