Fixed reported version
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 6m8s
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 6m8s
This commit is contained in:
parent
61d57d6de1
commit
94e009a867
|
@ -17,6 +17,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
fetch-tags: true
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
git describe --always
|
||||||
|
|
||||||
- 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
|
||||||
|
|
|
@ -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}"))?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user