Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
9ba98284ae
commit
8282f89640
@ -37,7 +37,7 @@ pub mod drone_templater {
|
|||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl MainAction for DroneTemplater {
|
impl MainAction for DroneTemplater {
|
||||||
async fn execute_main(&self, _ctx: &mut crate::Context) -> eyre::Result<()> {
|
async fn execute_main(&self, _ctx: &mut crate::Context) -> eyre::Result<()> {
|
||||||
let src = client.host().directory(".cuddle/tmp/");
|
let src = self.client.host().directory(".cuddle/tmp/");
|
||||||
|
|
||||||
let drone_host = std::env::var("DRONE_HOST");
|
let drone_host = std::env::var("DRONE_HOST");
|
||||||
let drone_user = std::env::var("DRONE_USER");
|
let drone_user = std::env::var("DRONE_USER");
|
||||||
@ -45,7 +45,7 @@ pub mod drone_templater {
|
|||||||
|
|
||||||
let drone_token_secret = client.set_secret("DRONE_TOKEN", drone_token);
|
let drone_token_secret = client.set_secret("DRONE_TOKEN", drone_token);
|
||||||
|
|
||||||
client
|
self.client
|
||||||
.container()
|
.container()
|
||||||
.from(DRONE_TEMPLATER_IMAGE)
|
.from(DRONE_TEMPLATER_IMAGE)
|
||||||
.with_directory("/src/templates", src)
|
.with_directory("/src/templates", src)
|
||||||
@ -57,7 +57,7 @@ pub mod drone_templater {
|
|||||||
"drone-templater",
|
"drone-templater",
|
||||||
"upload",
|
"upload",
|
||||||
"--template",
|
"--template",
|
||||||
self.template.display(),
|
&self.template.display(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user