Skip to content

Commit

Permalink
WIP variants for each platform
Browse files Browse the repository at this point in the history
- Improve for loops over map values
  • Loading branch information
SgtSilvio committed Jul 5, 2024
1 parent ec1ccba commit e22f00f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ abstract class OciPushTask @Inject constructor(
for ((imageName, tags) in imageReferences.groupByTo(HashMap(), { it.name }, { it.tag })) {

val manifestFutures = mutableListOf<CompletableFuture<Unit>>()
for ((_, image) in multiArchImage.platformToImage) {
for (image in multiArchImage.platformToImage.values) {
val blobFutures = mutableListOf<CompletableFuture<Unit>>()
for (variant in image.variants) {
for (layer in variant.layers) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ internal abstract class OciImageDefinitionImpl @Inject constructor(
project.afterEvaluate {
val platformBundles = platformBundles
if (platformBundles != null) {
for ((_, bundle) in platformBundles) {
for (bundle in platformBundles.values) {
bundle.onAfterEvaluate()
}
} else if (universalBundle == null) {
Expand Down

0 comments on commit e22f00f

Please sign in to comment.