villebro commented on code in PR #44250:
URL: https://github.com/apache/superset/pull/44250#discussion_r4039147096


##########
.github/workflows/docker.yml:
##########
@@ -162,15 +226,27 @@ jobs:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           BUILD_PRESET: ${{ matrix.build_preset }}
         run: |
-          # Single platform builds in pull_request context to speed things up
-          if [ "$GITHUB_EVENT_NAME" = "push" ]; then
+          set -euo pipefail
+          BUILD_CONTEXT="$GITHUB_EVENT_NAME"
+          BUILD_CONTEXT_REF=""
+          PUBLISH_DOCKER_CACHE=""
+
+          if [ "$GITHUB_EVENT_NAME" = "push" ] && [ "$GITHUB_REF" = 
"refs/heads/master" ]; then
             PLATFORM_ARG="--platform linux/arm64 --platform linux/amd64"
-            # can only --load images in single-platform builds
             PUSH_OR_LOAD="--push"

Review Comment:
   Addressed in 9165f06627. Concurrency now belongs to each docker-build matrix 
job after change detection, so a docs-only push creates no job that could 
replace a pending publisher. The group is scoped by branch and preset. The PR 
description notes GitHub's one-pending-job limit for successive publishing 
pushes.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to