fix(ci): use alpine image for builds
							parent
							
								
									ec64638159
								
							
						
					
					
						commit
						c5b579b8db
					
				|  | @ -10,7 +10,7 @@ branches: | |||
| 
 | ||||
| pipeline: | ||||
|   build: | ||||
|     image: 'rust:1.70' | ||||
|     image: 'rust:1.70-alpine3.18' | ||||
|     commands: | ||||
|       - cargo build --verbose | ||||
|       - cargo test --verbose | ||||
|  |  | |||
|  | @ -1,9 +1,9 @@ | |||
| use crate::server::ServerProcess; | ||||
| use std::fmt; | ||||
| use std::fs::File; | ||||
| use std::io::Write; | ||||
| use std::path::{Path, PathBuf}; | ||||
| use std::process::{Child, Command, Stdio}; | ||||
| use std::fmt; | ||||
| 
 | ||||
| pub enum ServerType { | ||||
|     Paper, | ||||
|  |  | |||
|  | @ -79,8 +79,10 @@ impl ServerProcess { | |||
|         tar.append_dir_all("worlds", &self.world_dir)?; | ||||
| 
 | ||||
|         // We don't store all files in the config, as this would include caches
 | ||||
|         tar.append_path_with_name(self.config_dir.join("server.properties"), "config/server.properties")?; | ||||
| 
 | ||||
|         tar.append_path_with_name( | ||||
|             self.config_dir.join("server.properties"), | ||||
|             "config/server.properties", | ||||
|         )?; | ||||
| 
 | ||||
|         // We add a file to the backup describing for what version it was made
 | ||||
|         let info = format!("{} {}", self.type_, self.version); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue