Skip to content

Commit f96933e

Browse files
committed
Append OS name like ghcr.io/rust-math/rust-mkl/linux/2020.1-123456
1 parent 3534684 commit f96933e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ use std::{
1111
time::Instant,
1212
};
1313

14-
const REGISTRY: &str = "ghcr.io/rust-math/rust-mkl";
15-
1614
fn main() -> Result<()> {
1715
let run_id: u64 = std::env::var("GITHUB_RUN_ID")
1816
.unwrap_or_else(|_| "0".to_string()) // fallback value for local testing
@@ -27,8 +25,12 @@ fn main() -> Result<()> {
2725
let lib = Library::new(cfg)?;
2826
let (year, _, update) = lib.version()?;
2927
let name = ImageName::parse(&format!(
30-
"{}/{}:{}.{}-{}",
31-
REGISTRY, cfg, year, update, run_id
28+
"ghcr.io/rust-math/rust-mkl/{}/{}:{}.{}-{}",
29+
std::env::consts::OS,
30+
cfg,
31+
year,
32+
update,
33+
run_id
3234
))?;
3335
let output = format!("{}.tar", cfg);
3436

0 commit comments

Comments
 (0)