Unshallow Git clone
This commit is contained in:
		
							
								
								
									
										12
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								.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)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user