Skip to content

Commit

Permalink
implement baking
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Jul 27, 2022

Verified

This commit was signed with the committer’s verified signature.
dasanra Daniel
1 parent 1913d6b commit 6205398
Showing 3 changed files with 255 additions and 99 deletions.
3 changes: 3 additions & 0 deletions src/docker/image.rs
Original file line number Diff line number Diff line change
@@ -157,6 +157,9 @@ impl std::str::FromStr for ImagePlatform {
value::{Error as SerdeError, StrDeserializer},
IntoDeserializer,
};
if s.contains(',') {
eyre::bail!("invalid platform, found unexpected character `,`");
}
if let Some((platform, toolchain)) = s.split_once('=') {
let image_toolchain = toolchain.into();
let (os, arch, variant) = if let Some((os, rest)) = platform.split_once('/') {
Loading

0 comments on commit 6205398

Please sign in to comment.