Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(ci): key image build push groups per sha (#120574)

Raúl Negrón-Oterod4f126217b7b
diff --git a/.github/workflows/ci-ml-mirror-image-scrub-container.yml b/.github/workflows/ci-ml-mirror-image-scrub-container.yml
index fbbe30ea0c69..0b3f7b41933d 100644
--- a/.github/workflows/ci-ml-mirror-image-scrub-container.yml
+++ b/.github/workflows/ci-ml-mirror-image-scrub-container.yml
@@ -8,7 +8,8 @@ on:
- 'master'
concurrency:
- group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
+ # Per-SHA on push: a shared group keeps one pending run, and the push that replaces it skips the build unless its own diff touches these paths.
+ group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.sha || github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
diff --git a/.github/workflows/ci-nodejs-container.yml b/.github/workflows/ci-nodejs-container.yml
index c48e231899a0..217953cb4ccb 100644
--- a/.github/workflows/ci-nodejs-container.yml
+++ b/.github/workflows/ci-nodejs-container.yml
@@ -25,7 +25,8 @@ on:
- 'master'
concurrency:
- group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
+ # Per-SHA on push: a shared group keeps one pending run, and the push that replaces it skips the build unless its own diff touches these paths.
+ group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.sha || github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
diff --git a/.github/workflows/rust-docker-build.yml b/.github/workflows/rust-docker-build.yml
index 5e9bcb778c52..778c7c0ed971 100644
--- a/.github/workflows/rust-docker-build.yml
+++ b/.github/workflows/rust-docker-build.yml
@@ -28,7 +28,8 @@ on:
- 'master'
concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
+ # Per-SHA: a shared group keeps one pending run, and the push that replaces it builds only the images its own diff affects.
+ group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: false
jobs: