Unshallow Git clone
This commit is contained in:
12
.drone.yml
12
.drone.yml
@ -4,9 +4,17 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# Needs a full git clone
|
||||||
|
- name: fetch
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git fetch --unshallow
|
||||||
|
|
||||||
# Frontend
|
# Frontend
|
||||||
- name: web_build
|
- name: web_build
|
||||||
image: node:23
|
image: node:23
|
||||||
|
depends_on:
|
||||||
|
- fetch
|
||||||
volumes:
|
volumes:
|
||||||
- name: web_app
|
- name: web_app
|
||||||
path: /tmp/web_build
|
path: /tmp/web_build
|
||||||
@ -20,6 +28,8 @@ steps:
|
|||||||
# Backend
|
# Backend
|
||||||
- name: backend_fetch_deps
|
- name: backend_fetch_deps
|
||||||
image: rust
|
image: rust
|
||||||
|
depends_on:
|
||||||
|
- fetch
|
||||||
volumes:
|
volumes:
|
||||||
- name: rust_registry
|
- name: rust_registry
|
||||||
path: /usr/local/cargo/registry
|
path: /usr/local/cargo/registry
|
||||||
@ -78,6 +88,8 @@ steps:
|
|||||||
# Mobile app code quality
|
# Mobile app code quality
|
||||||
- name: mobile_app_code_quality
|
- name: mobile_app_code_quality
|
||||||
image: ghcr.io/cirruslabs/flutter:latest
|
image: ghcr.io/cirruslabs/flutter:latest
|
||||||
|
depends_on:
|
||||||
|
- fetch
|
||||||
commands:
|
commands:
|
||||||
- echo "Build version:" $(git describe --tags --abbrev=0)
|
- echo "Build version:" $(git describe --tags --abbrev=0)
|
||||||
- echo "Build number:" $(git rev-list --count $(git describe --tags --abbrev=0))
|
- echo "Build number:" $(git rev-list --count $(git describe --tags --abbrev=0))
|
||||||
|
Reference in New Issue
Block a user