diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index a39d99c..a34e2f2 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -176,7 +176,7 @@ jobs: build-frontend: runs-on: [ci] - # if: false + if: false # needs: [test-backend, test-frontend] # needs: [test-frontend] @@ -236,8 +236,9 @@ jobs: deploy-prod: runs-on: [prod] + needs: [build-backend] # needs: [build-frontend] - needs: [build-backend, build-frontend] + # needs: [build-backend, build-frontend] env: CONTAINER_HOST: unix:///run/user/1001/podman/podman.sock diff --git a/backend/Dockerfile b/backend/Dockerfile index ec1fd21..34d736c 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -10,9 +10,10 @@ RUN apt-get update && apt-get install -y \ # Set working directory WORKDIR /app -# Copy Cargo files +# Copy Cargo files and migrations COPY Cargo.toml Cargo.lock ./ COPY crates/ ./crates/ +COPY migrations/ ./migrations/ # Build dependencies first (for better caching) RUN cargo build --release --bin sharenet-api-postgres