Fixed reported version

This commit is contained in:
Dreaded_X 2025-04-17 11:23:32 +02:00
parent 61d57d6de1
commit bcf4d41785
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA
2 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,9 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Get Git commit timestamps - name: Get Git commit timestamps
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV

View File

@ -3,6 +3,7 @@ use std::path::Path;
use color_eyre::eyre::Context; use color_eyre::eyre::Context;
use dotenvy::dotenv; use dotenvy::dotenv;
use git_version::git_version;
use hyper::server::conn::http1::{self}; use hyper::server::conn::http1::{self};
use hyper_util::rt::TokioIo; use hyper_util::rt::TokioIo;
use rand::rngs::OsRng; use rand::rngs::OsRng;
@ -29,6 +30,12 @@ async fn main() -> color_eyre::Result<()> {
.with(env_filter) .with(env_filter)
.init(); .init();
info!(
"Starting {} ({})",
std::env!("CARGO_PKG_NAME"),
git_version!(),
);
let key = if let Ok(path) = std::env::var("PRIVATE_KEY_FILE") { let key = if let Ok(path) = std::env::var("PRIVATE_KEY_FILE") {
russh::keys::PrivateKey::read_openssh_file(Path::new(&path)) russh::keys::PrivateKey::read_openssh_file(Path::new(&path))
.wrap_err_with(|| format!("failed to read ssh key: {path}"))? .wrap_err_with(|| format!("failed to read ssh key: {path}"))?