Fixed reported version
Some checks failed
Build and deploy / Build container and manifests (push) Failing after 57s

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

View File

@ -17,6 +17,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: true
- name: Test
run: |
git describe --always
- name: Get Git commit timestamps
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 dotenvy::dotenv;
use git_version::git_version;
use hyper::server::conn::http1::{self};
use hyper_util::rt::TokioIo;
use rand::rngs::OsRng;
@ -29,6 +30,12 @@ async fn main() -> color_eyre::Result<()> {
.with(env_filter)
.init();
info!(
"Starting {} ({})",
std::env!("CARGO_PKG_NAME"),
git_version!(),
);
let key = if let Ok(path) = std::env::var("PRIVATE_KEY_FILE") {
russh::keys::PrivateKey::read_openssh_file(Path::new(&path))
.wrap_err_with(|| format!("failed to read ssh key: {path}"))?