Add Drone configuration
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							
								
								
									
										50
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					kind: pipeline
 | 
				
			||||||
 | 
					type: docker
 | 
				
			||||||
 | 
					name: default
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					- name: frontend_build
 | 
				
			||||||
 | 
					  image: node:21
 | 
				
			||||||
 | 
					  volumes:
 | 
				
			||||||
 | 
					    - name: frontend_app
 | 
				
			||||||
 | 
					      path: /tmp/frontend_build
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - cd remote_frontend
 | 
				
			||||||
 | 
					  - npm install
 | 
				
			||||||
 | 
					  - npm run build
 | 
				
			||||||
 | 
					  - mv dist /tmp/frontend_build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: backend_check
 | 
				
			||||||
 | 
					  image: rust
 | 
				
			||||||
 | 
					  volumes:
 | 
				
			||||||
 | 
					  - name: rust_registry
 | 
				
			||||||
 | 
					    path: /usr/local/cargo/registry
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - rustup component add clippy
 | 
				
			||||||
 | 
					  - cd remote_backend
 | 
				
			||||||
 | 
					  - cargo clippy -- -D warnings
 | 
				
			||||||
 | 
					  - cargo test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: backend_compile
 | 
				
			||||||
 | 
					  image: rust
 | 
				
			||||||
 | 
					  volumes:
 | 
				
			||||||
 | 
					  - name: rust_registry
 | 
				
			||||||
 | 
					    path: /usr/local/cargo/registry
 | 
				
			||||||
 | 
					  - name: frontend_app
 | 
				
			||||||
 | 
					    path: /tmp/frontend_build
 | 
				
			||||||
 | 
					  depends_on:
 | 
				
			||||||
 | 
					  - backend_check
 | 
				
			||||||
 | 
					  - frontend_build
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - cd remote_backend
 | 
				
			||||||
 | 
					  - mv /tmp/frontend_build/dist static
 | 
				
			||||||
 | 
					  - cargo build --release
 | 
				
			||||||
 | 
					  - ls -lah target/release/remote_backend
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					- name: rust_registry
 | 
				
			||||||
 | 
					  temp: {}
 | 
				
			||||||
 | 
					- name: frontend_app
 | 
				
			||||||
 | 
					  temp: {}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user