Compare commits
No commits in common. "0da913ec7c5d07129457e90bd0a5f274f87ba15b" and "3df40715b40f1d8b4fbe8698daabd0760e7d3a83" have entirely different histories.
0da913ec7c
...
3df40715b4
6 changed files with 8 additions and 17 deletions
|
@ -5,7 +5,7 @@ use std::path::Path;
|
||||||
use cli_table::format::Justify;
|
use cli_table::format::Justify;
|
||||||
use cli_table::{Cell, Style, Table};
|
use cli_table::{Cell, Style, Table};
|
||||||
use color_eyre::eyre::{self, Context};
|
use color_eyre::eyre::{self, Context};
|
||||||
use color_eyre::{Help, Report, Result, SectionExt as _};
|
use color_eyre::{Help, Report, Result};
|
||||||
use globwalk::{DirEntry, GlobWalkerBuilder};
|
use globwalk::{DirEntry, GlobWalkerBuilder};
|
||||||
use reqwest::StatusCode;
|
use reqwest::StatusCode;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
@ -275,10 +275,7 @@ pub(crate) fn run(action: &Action) -> Result<()> {
|
||||||
eyre::bail!("No data received on stdin");
|
eyre::bail!("No data received on stdin");
|
||||||
}
|
}
|
||||||
|
|
||||||
serde_json::from_str(&buf)
|
serde_json::from_str(&buf).wrap_err("Failed to parse stdin")?
|
||||||
.wrap_err("Failed to parse config")
|
|
||||||
.with_suggestion(|| "Double-check the `source` and `params` sections in your pipeline")
|
|
||||||
.with_section(|| buf.header("JSON"))?
|
|
||||||
};
|
};
|
||||||
|
|
||||||
match action {
|
match action {
|
||||||
|
|
|
@ -5,7 +5,7 @@ use std::path::Path;
|
||||||
use cli_table::format::Justify;
|
use cli_table::format::Justify;
|
||||||
use cli_table::{print_stderr, Cell, Style, Table};
|
use cli_table::{print_stderr, Cell, Style, Table};
|
||||||
use color_eyre::eyre::{self, Context};
|
use color_eyre::eyre::{self, Context};
|
||||||
use color_eyre::{Result, Section as _, SectionExt as _};
|
use color_eyre::Result;
|
||||||
use reqwest::blocking::Response;
|
use reqwest::blocking::Response;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
@ -160,10 +160,7 @@ pub(crate) fn run(action: &Action) -> Result<()> {
|
||||||
eyre::bail!("No data received on stdin");
|
eyre::bail!("No data received on stdin");
|
||||||
}
|
}
|
||||||
|
|
||||||
serde_json::from_str(&buf)
|
serde_json::from_str(&buf).wrap_err("Failed to parse stdin")?
|
||||||
.wrap_err("Failed to parse config")
|
|
||||||
.with_suggestion(|| "Double-check the `source` and `params` sections in your pipeline")
|
|
||||||
.with_section(|| buf.header("JSON"))?
|
|
||||||
};
|
};
|
||||||
|
|
||||||
match action {
|
match action {
|
||||||
|
|
|
@ -144,10 +144,7 @@ pub(crate) fn run(action: &Action) -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
serde_json::from_str(&buf)
|
serde_json::from_str(&buf)
|
||||||
.wrap_err("Failed to parse config")
|
.wrap_err("Failed to parse stdin")
|
||||||
.with_suggestion(|| {
|
|
||||||
"Double-check the `source` and `params` sections in your pipeline"
|
|
||||||
})
|
|
||||||
.with_section(|| buf.header("JSON"))?
|
.with_section(|| buf.header("JSON"))?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
access_token: ((forgejo_api_key))
|
access_token: ((forgejo_api_key))
|
||||||
url: ((forgejo_url))
|
url: ((forgejo_url))
|
||||||
owner: ((repo_owner))
|
owner: ((repo_owner))
|
||||||
repo: ((repo_name))
|
name: ((repo_name))
|
||||||
type: generic
|
type: generic
|
||||||
context: build/{{name}}
|
context: build/{{name}}
|
||||||
description: Building image {{name}}
|
description: Building image {{name}}
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
access_token: ((forgejo_api_key))
|
access_token: ((forgejo_api_key))
|
||||||
url: ((forgejo_url))
|
url: ((forgejo_url))
|
||||||
owner: ((repo_owner))
|
owner: ((repo_owner))
|
||||||
repo: ((repo_name))
|
name: ((repo_name))
|
||||||
type: generic
|
type: generic
|
||||||
context: build/gitea
|
context: build/gitea
|
||||||
description: Building images gitea-package, gitea-pr, gitea-status
|
description: Building images gitea-package, gitea-pr, gitea-status
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
access_token: ((forgejo_api_key))
|
access_token: ((forgejo_api_key))
|
||||||
url: ((forgejo_url))
|
url: ((forgejo_url))
|
||||||
owner: ((repo_owner))
|
owner: ((repo_owner))
|
||||||
repo: ((repo_name))
|
name: ((repo_name))
|
||||||
type: generic
|
type: generic
|
||||||
context: build/rust-xwin
|
context: build/rust-xwin
|
||||||
description: Building image rust-xwin
|
description: Building image rust-xwin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue