Skip to content

Commit 58b3bcd

Browse files
committed
Add platform selection for container images
1 parent b3cf6d3 commit 58b3bcd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,16 @@ testing {
309309
tasks.named("check") {
310310
dependsOn(integrationTest, systemTest)
311311
}
312+
313+
tasks.named("integrationTestOciRegistryData", oci.imagesTaskClass) {
314+
val linuxAmd64 = oci.platformSelector(oci.platform("linux", "amd64"))
315+
val linuxArm64v8 = oci.platformSelector(oci.platform("linux", "arm64", "v8"))
316+
platformSelector = if (System.getenv("CI_RUN") != null) {
317+
linuxAmd64
318+
} else {
319+
linuxAmd64.and(linuxArm64v8)
320+
}
321+
}
312322
}
313323
}
314324

0 commit comments

Comments
 (0)