Skip to content

Commit

Permalink
Merge pull request #195 from vdice/chore/bump-oci-and-spin-crates
Browse files Browse the repository at this point in the history
chore(*): bump oci and spin crates; update usage
  • Loading branch information
vdice committed Apr 8, 2024
2 parents b8f5f97 + 528c2e3 commit 9dc141b
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 49 deletions.
168 changes: 134 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ comfy-table = "7"
dirs = "5.0"
dialoguer = "0.10"
lazy_static = "1.4.0"
oci-distribution = { git = "https://github.com/fermyon/oci-distribution", rev = "63cbb0925775e0c9c870195cad1d50ac8707a264" }
oci-distribution = { git = "https://github.com/fermyon/oci-distribution", rev = "7e4ce9be9bcd22e78a28f06204931f10c44402ba" }
tokio = { version = "1.23", features = ["full"] }
tracing = { workspace = true }
rand = "0.8"
Expand All @@ -32,13 +32,13 @@ semver = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.82"
sha2 = "0.10.2"
spin-common = { git = "https://github.com/fermyon/spin", rev = "a400e3fe702694a042e4c9de814445b0f99daef4" }
spin-loader = { git = "https://github.com/fermyon/spin", rev = "a400e3fe702694a042e4c9de814445b0f99daef4" }
spin-locked-app = { git = "https://github.com/fermyon/spin", rev = "a400e3fe702694a042e4c9de814445b0f99daef4" }
spin-http = { git = "https://github.com/fermyon/spin", rev = "a400e3fe702694a042e4c9de814445b0f99daef4", default-features = false }
spin-manifest = { git = "https://github.com/fermyon/spin", rev = "a400e3fe702694a042e4c9de814445b0f99daef4" }
spin-oci = { git = "https://github.com/fermyon/spin", rev = "a400e3fe702694a042e4c9de814445b0f99daef4" }
terminal = { git = "https://github.com/fermyon/spin", rev = "a400e3fe702694a042e4c9de814445b0f99daef4" }
spin-common = { git = "https://github.com/fermyon/spin", rev = "86a58771091c02eaf40b5395a2a6bc711740f038" }
spin-loader = { git = "https://github.com/fermyon/spin", rev = "86a58771091c02eaf40b5395a2a6bc711740f038" }
spin-locked-app = { git = "https://github.com/fermyon/spin", rev = "86a58771091c02eaf40b5395a2a6bc711740f038" }
spin-http = { git = "https://github.com/fermyon/spin", rev = "86a58771091c02eaf40b5395a2a6bc711740f038", default-features = false }
spin-manifest = { git = "https://github.com/fermyon/spin", rev = "86a58771091c02eaf40b5395a2a6bc711740f038" }
spin-oci = { git = "https://github.com/fermyon/spin", rev = "86a58771091c02eaf40b5395a2a6bc711740f038" }
terminal = { git = "https://github.com/fermyon/spin", rev = "86a58771091c02eaf40b5395a2a6bc711740f038" }
tempfile = "3.3.0"
url = { version = "2.3", features = ["serde"] }
uuid = { version = "1.3", features = ["v4"] }
Expand Down
16 changes: 9 additions & 7 deletions src/commands/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,15 @@ impl DeployCommand {
let oci_ref = Reference::try_from(reference.as_ref())
.context(format!("Could not parse reference '{reference}'"))?;

client.insert_token(
&oci_ref,
RegistryOperation::Push,
token_cache::RegistryTokenType::Bearer(token_cache::RegistryToken::Token {
token: connection_config.token,
}),
);
client
.insert_token(
&oci_ref,
RegistryOperation::Push,
token_cache::RegistryTokenType::Bearer(token_cache::RegistryToken::Token {
token: connection_config.token,
}),
)
.await;

println!(
"Uploading {} version {} to Fermyon Cloud...",
Expand Down

0 comments on commit 9dc141b

Please sign in to comment.