damccorm commented on code in PR #26967:
URL: https://github.com/apache/beam/pull/26967#discussion_r1247241345


##########
sdks/python/container/build.gradle:
##########
@@ -42,11 +42,75 @@ tasks.register("buildAll") {
   dependsOn ':sdks:python:container:py311:docker'
 }
 
-tasks.register("pushAll") {
+tasks.register("push38") {
   dependsOn ':sdks:python:container:py38:dockerPush'
+
+  doLast {
+    if (project.hasProperty("prune-images")) {
+      exec {
+        executable("docker")
+        args("system", "prune", "-a", "--force")
+      }
+    }
+  }
+}
+
+tasks.register("push39") {
+  // Enforce ordering to allow the prune step to happen between runs.

Review Comment:
   Done! Lets confirm that it works with the Actions build before merging 
though.
   
   Build: https://github.com/damccorm/beam/actions/runs/5417461717
   Dockerhub repos: https://hub.docker.com/repositories/damccorm (not sure if 
that will be visible)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to