Skip to content

Commit

Permalink
Add platform selection for container images
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Aug 6, 2024
1 parent e2267e0 commit 0e1db47
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}

Expand Down

0 comments on commit 0e1db47

Please sign in to comment.