This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch users/damccorm/distroless
in repository https://gitbox.apache.org/repos/asf/beam.git

commit ce6658b36c26fc357fd0ffe986787ae85130cd64
Author: Danny Mccormick <[email protected]>
AuthorDate: Mon Jun 30 11:45:32 2025 -0400

    Actually publish distroless containers when releasing
---
 build.gradle.kts                              | 1 +
 sdks/python/container/build.gradle            | 1 +
 sdks/python/container/distroless/build.gradle | 8 ++++++--
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index d1f0740e7c0..ed3f81a3afe 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -621,6 +621,7 @@ tasks.register("pushAllSdkDockerImages") {
   }
 
   dependsOn(":sdks:java:container:pushAll")
+  dependsOn(":sdks:java:container:distroless:pushAll")
   if (!project.hasProperty("skip-python-images")) {
     dependsOn(":sdks:python:container:pushAll")
   }
diff --git a/sdks/python/container/build.gradle 
b/sdks/python/container/build.gradle
index 861d90b6e6b..f4de804b80b 100644
--- a/sdks/python/container/build.gradle
+++ b/sdks/python/container/build.gradle
@@ -70,6 +70,7 @@ for(int i=min_python_version; i<=max_python_version; ++i) {
 }
 
 tasks.register("pushAll") {
+  dependsOn ':sdks:python:container:distroless:pushAll'
   for(int ver=min_python_version; ver<=max_python_version; ++ver) {
       if (!project.hasProperty("skip-python-3" + ver + "-images")) {
         dependsOn ':sdks:python:container:push3' + ver
diff --git a/sdks/python/container/distroless/build.gradle 
b/sdks/python/container/distroless/build.gradle
index a967a80f4fc..314484ade61 100644
--- a/sdks/python/container/distroless/build.gradle
+++ b/sdks/python/container/distroless/build.gradle
@@ -38,7 +38,9 @@ for(int i=min_python_version; i<=max_python_version; ++i) {
         if (cur != min_version) {
             // 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(":sdks:python:container:distroless:push" + prev)
+            if (!project.hasProperty("skip-python-3" + prev + "-images")) {
+                mustRunAfter(":sdks:python:container:distroless:push" + prev)
+            }
         }
         dependsOn ':sdks:python:container:distroless:py' + cur + ':docker'
 
@@ -55,6 +57,8 @@ for(int i=min_python_version; i<=max_python_version; ++i) {
 
 tasks.register("pushAll") {
     for(int ver=min_python_version; ver<=max_python_version; ++ver) {
-        dependsOn ':sdks:python:container:distroless:push3' + ver
+        if (!project.hasProperty("skip-python-3" + ver + "-images")) {
+            dependsOn ':sdks:python:container:distroless:push3' + ver
+        }
     }
 }

Reply via email to