ci: docker_tag=ext - Correction du Dockerfile pour le build CI
Some checks failed
build-and-push-ext / build_push (push) Failing after 9s
Some checks failed
build-and-push-ext / build_push (push) Failing after 9s
- Cloner sdk_common depuis le repository Git au lieu de le copier localement - Résout l'erreur de build 'sdk_common not found' dans le CI
This commit is contained in:
parent
8b0465f6a4
commit
16ee2de894
@ -6,10 +6,12 @@ WORKDIR /app
|
||||
RUN mkdir -p /root/.ssh && \
|
||||
ssh-keyscan git.4nkweb.com >> /root/.ssh/known_hosts
|
||||
|
||||
# Cloner sdk_common depuis le repository
|
||||
RUN --mount=type=ssh git clone ssh://git@git.4nkweb.com/4nk/sdk_common.git /sdk_common
|
||||
|
||||
# Copie des fichiers de sdk_relay
|
||||
COPY sdk_relay/Cargo.toml sdk_relay/Cargo.lock ./
|
||||
COPY sdk_relay/src/ src/
|
||||
COPY sdk_common /sdk_common
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user