: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(ci): skip rust image digest collection when push is off (#123370)
Georges-Antoine Assi372de2b66138
diff --git a/.github/workflows/_rust-build-images.yml b/.github/workflows/_rust-build-images.ymlindex 676c543e00e1..ca746bd6358c 100644--- a/.github/workflows/_rust-build-images.yml+++ b/.github/workflows/_rust-build-images.yml@@ -45,7 +45,7 @@ on:required: falseoutputs:digests:- description: 'JSON object mapping image name to digest'+ description: 'JSON object mapping image name to digest (empty when push is false)'value: ${{ jobs.collect.outputs.digests }}jobs:@@ -245,12 +245,15 @@ jobs:event: ${{ inputs.event-name }}properties: ${{ steps.failure-props.outputs.json }}+ # A build without a push has no registry digest to record.- name: Container image digest+ if: inputs.pushenv:DIGEST: ${{ steps.docker_build.outputs.digest }}run: echo "$DIGEST" > /tmp/digest-${{ matrix.image }}.txt- name: Upload digest+ if: inputs.pushuses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:name: digest-${{ matrix.image }}@@ -260,6 +263,7 @@ jobs:collect:name: collect digestsneeds: [load-matrix, build]+ if: inputs.pushruns-on: ubuntu-24.04timeout-minutes: 2permissions: