fix: new site deployment requires extra info
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
8d9bc95bf6
commit
20aa88ca51
1 changed files with 8 additions and 1 deletions
9
env/libconductor/src/event_types.rs
vendored
9
env/libconductor/src/event_types.rs
vendored
|
@ -17,9 +17,16 @@
|
|||
use libconfig::Config as LibCOnfig;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Deserialize, Serialize, Debug, PartialEq, Eq, Clone)]
|
||||
pub struct NewSite {
|
||||
pub path: String,
|
||||
pub branch: String,
|
||||
pub hostname: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize, Debug, PartialEq, Eq, Clone)]
|
||||
#[serde(untagged)]
|
||||
pub enum EventType {
|
||||
NewHostname(String),
|
||||
NewSite(NewSite),
|
||||
Config(LibCOnfig),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue