ci: docker_tag=ext - Remove SSH dependency, use HTTPS for public repos
All checks were successful
build-and-push-ext / build_push (push) Successful in 1m25s

This commit is contained in:
4NK Dev 2025-09-21 11:41:48 +00:00
parent c8542f9ddf
commit 7927a27fd8

View File

@ -2,19 +2,15 @@
FROM rust:latest AS builder
WORKDIR /app
# Configuration de git pour utiliser SSH
RUN mkdir -p /root/.ssh && \
ssh-keyscan git.4nkweb.com >> /root/.ssh/known_hosts
# Cloner sdk_common depuis le repository (branche ext)
RUN --mount=type=ssh git clone -b ext ssh://git@git.4nkweb.com/4nk/sdk_common.git /sdk_common
RUN git clone -b ext https://git.4nkweb.com/4nk/sdk_common.git /sdk_common
# Copie des fichiers de sdk_relay
COPY Cargo.toml Cargo.lock ./
COPY src/ src/
# Build avec support SSH pour récupérer les dépendances
RUN --mount=type=ssh cargo build --release
# Build
RUN cargo build --release
# ---- image finale ----
FROM debian:bookworm-slim