fix: new site deployment requires extra info
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2022-12-09 18:04:26 +05:30
parent 8d9bc95bf6
commit 20aa88ca51
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -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),
}