diff --git a/build.gradle.kts b/build.gradle.kts index e8a21e100..b6253f256 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -309,6 +309,16 @@ testing { tasks.named("check") { dependsOn(integrationTest, systemTest) } + + tasks.named("integrationTestOciRegistryData", oci.imagesTaskClass) { + val linuxAmd64 = oci.platformSelector(oci.platform("linux", "amd64")) + val linuxArm64v8 = oci.platformSelector(oci.platform("linux", "arm64", "v8")) + platformSelector = if (System.getenv("CI_RUN") != null) { + linuxAmd64 + } else { + linuxAmd64.and(linuxArm64v8) + } + } } }