Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable splitting up docker publish workflow #34082

Merged
merged 2 commits into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,14 @@ tasks.register("pushAllRunnersDockerImages") {
tasks.register("pushAllSdkDockerImages") {
// Enforce ordering to allow the prune step to happen between runs.
// This will ensure we don't use up too much space (especially in CI environments)
mustRunAfter(":pushAllRunnersDockerImages")
if (!project.hasProperty("skip-runner-images")) {
mustRunAfter(":pushAllRunnersDockerImages")
}

dependsOn(":sdks:java:container:pushAll")
dependsOn(":sdks:python:container:pushAll")
if (!project.hasProperty("skip-python-images")) {
dependsOn(":sdks:python:container:pushAll")
}
dependsOn(":sdks:go:container:pushAll")
dependsOn(":sdks:typescript:container:pushAll")

Expand All @@ -618,7 +622,9 @@ tasks.register("pushAllSdkDockerImages") {
tasks.register("pushAllXlangDockerImages") {
// Enforce ordering to allow the prune step to happen between runs.
// This will ensure we don't use up too much space (especially in CI environments)
mustRunAfter(":pushAllSdkDockerImages")
if (!project.hasProperty("skip-sdk-images")) {
mustRunAfter(":pushAllSdkDockerImages")
}

dependsOn(":sdks:java:expansion-service:container:docker")
dependsOn(":sdks:java:transform-service:controller-container:docker")
Expand All @@ -635,9 +641,15 @@ tasks.register("pushAllXlangDockerImages") {
}

tasks.register("pushAllDockerImages") {
dependsOn(":pushAllRunnersDockerImages")
dependsOn(":pushAllSdkDockerImages")
dependsOn(":pushAllXlangDockerImages")
if (!project.hasProperty("skip-runner-images")) {
dependsOn(":pushAllRunnersDockerImages")
}
if (!project.hasProperty("skip-sdk-images")) {
dependsOn(":pushAllSdkDockerImages")
}
if (!project.hasProperty("skip-xlang-images")) {
dependsOn(":pushAllXlangDockerImages")
}
}

// Use this task to validate the environment set up for Go, Python and Java
Expand Down