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
All checks were successful
build-and-push-ext / build_push (push) Successful in 1m25s
This commit is contained in:
parent
c8542f9ddf
commit
7927a27fd8
10
Dockerfile
10
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 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user