fix(ci): use alpine image for builds
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/clippy Pipeline failed Details
ci/woodpecker/push/build Pipeline was successful Details

signal-handling
Jef Roosens 2023-06-03 15:03:41 +02:00
parent ec64638159
commit c5b579b8db
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 6 additions and 4 deletions

View File

@ -10,7 +10,7 @@ branches:
pipeline: pipeline:
build: build:
image: 'rust:1.70' image: 'rust:1.70-alpine3.18'
commands: commands:
- cargo build --verbose - cargo build --verbose
- cargo test --verbose - cargo test --verbose

View File

@ -1,9 +1,9 @@
use crate::server::ServerProcess; use crate::server::ServerProcess;
use std::fmt;
use std::fs::File; use std::fs::File;
use std::io::Write; use std::io::Write;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use std::process::{Child, Command, Stdio}; use std::process::{Child, Command, Stdio};
use std::fmt;
pub enum ServerType { pub enum ServerType {
Paper, Paper,

View File

@ -79,8 +79,10 @@ impl ServerProcess {
tar.append_dir_all("worlds", &self.world_dir)?; tar.append_dir_all("worlds", &self.world_dir)?;
// We don't store all files in the config, as this would include caches // 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 // We add a file to the backup describing for what version it was made
let info = format!("{} {}", self.type_, self.version); let info = format!("{} {}", self.type_, self.version);