ci: docker_tag=ext - Fix Dockerfile to use HTTPS instead of SSH for git clone
This commit is contained in:
parent
b6f09c952b
commit
0c2ba7bef5
12
Dockerfile
12
Dockerfile
@ -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 dev4)
|
||||
RUN --mount=type=ssh git clone -b dev4 ssh://git@git.4nkweb.com/4nk/sdk_common.git /sdk_common
|
||||
# Cloner sdk_common depuis le repository (branche ext)
|
||||
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 des dépendances
|
||||
RUN cargo build --release
|
||||
|
||||
# ---- image finale ----
|
||||
FROM debian:bookworm-slim
|
||||
|
Loading…
x
Reference in New Issue
Block a user