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.

chore(ci): honour PUBLIC_IMAGE_PUSH_PAUSED for the metrics-agent image and chart (#120599)

Georges-Antoine Assic01765acd6c8
diff --git a/.github/workflows/cd-metrics-agent-image.yml b/.github/workflows/cd-metrics-agent-image.yml
index 85e6b8ba055b..2972a1e7076f 100644
--- a/.github/workflows/cd-metrics-agent-image.yml
+++ b/.github/workflows/cd-metrics-agent-image.yml
@@ -148,7 +148,7 @@ jobs:
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: products/metrics/agent
- push: ${{ github.ref == 'refs/heads/master' && vars.CD_DEPLOY_ENABLED == 'true' }}
+ push: ${{ github.ref == 'refs/heads/master' && vars.CD_DEPLOY_ENABLED == 'true' && vars.PUBLIC_IMAGE_PUSH_PAUSED != 'true' }}
tags: |
${{ steps.docker-meta.outputs.tags }}
${{ steps.release-tag.outputs.tags }}
@@ -158,7 +158,7 @@ jobs:
publish-chart:
name: Publish Helm chart to GHCR
needs: build
- if: github.repository_owner == 'PostHog' && github.ref == 'refs/heads/master' && vars.CD_DEPLOY_ENABLED == 'true'
+ if: github.repository_owner == 'PostHog' && github.ref == 'refs/heads/master' && vars.CD_DEPLOY_ENABLED == 'true' && vars.PUBLIC_IMAGE_PUSH_PAUSED != 'true'
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions: