Skip to content

Commit 10ae394

Browse files
added fly deploy timeout in git action, also improved docker layering
1 parent 162a23e commit 10ae394

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
deploy:
5757
needs: publish
5858
runs-on: ubuntu-latest
59+
timeout-minutes: 5
5960
steps:
6061
- uses: actions/checkout@v4
6162

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2323
# Copy workspace manifests and lockfile for dependency caching
2424
COPY Cargo.toml Cargo.lock ./
2525
COPY proxy/Cargo.toml proxy/Cargo.toml
26-
COPY migration/ migration/
26+
COPY migration/Cargo.toml migration/Cargo.toml
2727

2828
# Create a dummy binary so `cargo build` can cache dependencies
2929
RUN mkdir -p proxy/src && echo 'fn main() {}' > proxy/src/main.rs \
30+
&& mkdir -p migration/src && echo '' > migration/src/lib.rs \
3031
&& cargo build --release \
31-
&& rm -rf proxy/src
32+
&& rm -rf proxy/src migration/src
3233

3334
# ── dev: hot-reload stage ─────────────────────────────────────────────────────
3435
FROM base AS dev
@@ -45,6 +46,7 @@ CMD ["cargo", "watch", "-x", "run"]
4546
# ── builder: compile release binary ──────────────────────────────────────────
4647
FROM base AS builder
4748

49+
COPY migration/src migration/src
4850
COPY proxy/src proxy/src
4951

5052
RUN cargo build --release

0 commit comments

Comments
 (0)