fix(build): perbaiki referensi paket zesdex-gateway di Dockerfile & default.nix
- Dockerfile & default.nix: ganti zesdex-backend -> zesdex-gateway (binary zesdex) - flake.nix & default.nix: versi 1.13.0 -> 1.18.2 mengikuti Cargo.toml - chore(ci): drop cargo build --release dari check job, tambah cargo fmt --check
This commit is contained in:
@@ -21,11 +21,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
|
|
||||||
- name: Build workspace
|
- name: Format check
|
||||||
run: cargo build --release --workspace
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
|
- name: Clippy workspace
|
||||||
|
run: cargo clippy --workspace --all-targets -- -D warnings
|
||||||
|
|
||||||
- name: Test workspace
|
- name: Test workspace
|
||||||
run: cargo test --workspace
|
run: cargo test --workspace
|
||||||
|
|
||||||
- name: Clippy workspace
|
|
||||||
run: cargo clippy --workspace -- -D warnings
|
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ WORKDIR /app
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build with release profile (treats warnings as errors via lints)
|
# Build with release profile (treats warnings as errors via lints)
|
||||||
RUN cargo build --release -p zesdex-backend --bin zesdex
|
RUN cargo build --release -p zesdex-gateway --bin zesdex
|
||||||
|
|
||||||
# Stage 2: Minimal runtime image
|
# Stage 2: Minimal runtime image
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|||||||
+2
-2
@@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
pkgs.rustPlatform.buildRustPackage {
|
pkgs.rustPlatform.buildRustPackage {
|
||||||
pname = "zesdex";
|
pname = "zesdex";
|
||||||
version = "1.13.0";
|
version = "1.18.2";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
lockFile = ./Cargo.lock;
|
lockFile = ./Cargo.lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoBuildFlags = [ "-p" "zesdex-backend" "--bin" "zesdex" ];
|
cargoBuildFlags = [ "-p" "zesdex-gateway" "--bin" "zesdex" ];
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [ pkg-config ];
|
nativeBuildInputs = with pkgs; [ pkg-config ];
|
||||||
buildInputs = with pkgs; [ openssl sqlite ];
|
buildInputs = with pkgs; [ openssl sqlite ];
|
||||||
|
|||||||
Reference in New Issue
Block a user