diff --git a/.forgejo/workflows/docker.yml b/.forgejo/workflows/docker.yml index 7fee464..3003449 100644 --- a/.forgejo/workflows/docker.yml +++ b/.forgejo/workflows/docker.yml @@ -2,7 +2,7 @@ name: Docker Build on: push: - branches: [ main ] + branches: [ main, docker ] jobs: docker-backend: @@ -11,8 +11,10 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - run: | - apt update && apt install -y docker.io + - name: Install Docker + run: | + curl -fsSL https://get.docker.com -o get-docker.sh + sh get-docker.sh - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Forgejo Container Registry @@ -31,8 +33,10 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - run: | - apt update && apt install -y docker.io + - name: Install Docker + run: | + curl -fsSL https://get.docker.com -o get-docker.sh + sh get-docker.sh - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Forgejo Container Registry diff --git a/backend/Dockerfile b/backend/Dockerfile index 6ce2a7e..54f4b34 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -25,7 +25,7 @@ COPY src/ src/ COPY migrations/ migrations/ # Build the application -RUN cargo build --release +RUN --mount=source=.sqlx,target=.sqlx cargo build --release # Runtime stage FROM alpine:latest