From 5c987473a51759c11585e1f21fabe00a46299866 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 17 Jul 2025 19:25:27 +0200 Subject: [PATCH] Unshallow Git clone --- .drone.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.drone.yml b/.drone.yml index 6c0dedb..6d9f720 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,9 +4,17 @@ type: docker name: default steps: +# Needs a full git clone +- name: fetch + image: alpine/git + commands: + - git fetch --unshallow + # Frontend - name: web_build image: node:23 + depends_on: + - fetch volumes: - name: web_app path: /tmp/web_build @@ -20,6 +28,8 @@ steps: # Backend - name: backend_fetch_deps image: rust + depends_on: + - fetch volumes: - name: rust_registry path: /usr/local/cargo/registry @@ -78,6 +88,8 @@ steps: # Mobile app code quality - name: mobile_app_code_quality image: ghcr.io/cirruslabs/flutter:latest + depends_on: + - fetch commands: - echo "Build version:" $(git describe --tags --abbrev=0) - echo "Build number:" $(git rev-list --count $(git describe --tags --abbrev=0))