From 1c8ea9a55b32b5d0ffc5d70dd4a8f2ef0228cba5 Mon Sep 17 00:00:00 2001 From: vsilent Date: Fri, 15 Nov 2024 22:38:56 +0200 Subject: [PATCH] workflow SQLX_OFFLINE --- .github/workflows/docker.yml | 2 ++ Dockerfile | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 70f5a38..bb830c4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -91,6 +91,8 @@ jobs: - name: Run cargo build uses: actions-rs/cargo@v1 + env: + SQLX_OFFLINE: true with: command: build args: --release diff --git a/Dockerfile b/Dockerfile index 3523dd3..32486d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,7 @@ COPY ./src ./src #RUN ls -la /app/ >&2 #RUN sqlx migrate run #RUN cargo sqlx prepare -- --bin stacker +ENV SQLX_OFFLINE true RUN apt-get update && apt-get install --no-install-recommends -y libssl-dev; \ cargo build --bin=console --features="explain" && cargo build --release --features="explain"