Skip to content

Commit

Permalink
Print name and version instead of entire reference
Browse files Browse the repository at this point in the history
Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice committed Aug 10, 2023
1 parent 9ba9494 commit 675e8f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ impl DeployCommand {
None => cloud_registry_url.domain().unwrap().to_owned() + "/" + &application.info.name,
};

println!("Uploading {} to Fermyon Cloud...", reference);
let oci_ref = Reference::try_from(reference.as_ref())
.expect(&format!("Could not parse reference '{reference}'"));

Expand All @@ -520,6 +519,11 @@ impl DeployCommand {
}),
);

println!(
"Uploading {} version {} to Fermyon Cloud...",
&oci_ref.repository(),
&oci_ref.tag().unwrap_or(&application.info.version)
);
let digest = client.push(&application, reference).await?;

Ok(digest)
Expand Down

0 comments on commit 675e8f4

Please sign in to comment.