Include migrations folder in backend container
Some checks failed
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Has been skipped
Podman Rootless Demo / build-backend (push) Failing after 4m19s
Podman Rootless Demo / deploy-prod (push) Has been skipped
Podman Rootless Demo / build-frontend (push) Has been skipped
Some checks failed
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Has been skipped
Podman Rootless Demo / build-backend (push) Failing after 4m19s
Podman Rootless Demo / deploy-prod (push) Has been skipped
Podman Rootless Demo / build-frontend (push) Has been skipped
This commit is contained in:
parent
40f084ab70
commit
54245f1c3a
2 changed files with 5 additions and 3 deletions
|
|
@ -176,7 +176,7 @@ jobs:
|
||||||
|
|
||||||
build-frontend:
|
build-frontend:
|
||||||
runs-on: [ci]
|
runs-on: [ci]
|
||||||
# if: false
|
if: false
|
||||||
# needs: [test-backend, test-frontend]
|
# needs: [test-backend, test-frontend]
|
||||||
# needs: [test-frontend]
|
# needs: [test-frontend]
|
||||||
|
|
||||||
|
|
@ -236,8 +236,9 @@ jobs:
|
||||||
|
|
||||||
deploy-prod:
|
deploy-prod:
|
||||||
runs-on: [prod]
|
runs-on: [prod]
|
||||||
|
needs: [build-backend]
|
||||||
# needs: [build-frontend]
|
# needs: [build-frontend]
|
||||||
needs: [build-backend, build-frontend]
|
# needs: [build-backend, build-frontend]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CONTAINER_HOST: unix:///run/user/1001/podman/podman.sock
|
CONTAINER_HOST: unix:///run/user/1001/podman/podman.sock
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,10 @@ RUN apt-get update && apt-get install -y \
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy Cargo files
|
# Copy Cargo files and migrations
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
COPY crates/ ./crates/
|
COPY crates/ ./crates/
|
||||||
|
COPY migrations/ ./migrations/
|
||||||
|
|
||||||
# Build dependencies first (for better caching)
|
# Build dependencies first (for better caching)
|
||||||
RUN cargo build --release --bin sharenet-api-postgres
|
RUN cargo build --release --bin sharenet-api-postgres
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue