ci: derive release binary version from tag (#224)
Set the CLI build version from OBSCURA_VERSION, GitHub tag refs, or Cargo.toml fallback. Use that same build version for both --version and the startup banner, and pass the Docker tag version into Docker builds.
This commit is contained in:
1 parent
5e23903063
commit
048d72dc18
4 files changed
+45
-4
No files matched your search
@@ -10,7 +10,7 @@ use tokio::time::{timeout, Duration};
|
||||
#[derive(Parser)]
|
||||
#[command(
|
||||
name = "obscura",
|
||||
version = env!("CARGO_PKG_VERSION"),
|
||||
version = env!("OBSCURA_BUILD_VERSION"),
|
||||
about = "Obscura - A lightweight headless browser for web scraping and automation",
|
||||
)]
|
||||
struct Args {
|
||||
@@ -189,9 +189,9 @@ fn print_banner(port: u16) {
|
||||
| |__| | |_) \__ \ (__| |_| | | | (_| |
|
||||
\____/|_.__/|___/\___|\__,_|_| \__,_|
|
||||
|
||||
Headless Browser v0.1.6
|
||||
Headless Browser v{}
|
||||
CDP server: ws://127.0.0.1:{}/devtools/browser
|
||||
"#, port);
|
||||
"#, env!("OBSCURA_BUILD_VERSION"), port);
|
||||
}
|
||||
|
||||
fn select_log_filter(verbose: bool, quiet: bool) -> &'static str {
|
||||
|
||||
Reference in new issue
Block a user