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(cd): emit the ecr-repository job output from a step (#80716)

Stephen Schmidt85c2425c4581
diff --git a/.github/workflows/container-images-cd.yml b/.github/workflows/container-images-cd.yml
index 3820b3d03088..610441185a47 100644
--- a/.github/workflows/container-images-cd.yml
+++ b/.github/workflows/container-images-cd.yml
@@ -37,7 +37,7 @@ jobs:
outputs:
image-digest: ${{ steps.image.outputs.digest }}
ecr-registry: ${{ steps.docker-meta.outputs.ecr-registry }}
- ecr-repository: ${{ env.ECR_REPOSITORY }}
+ ecr-repository: ${{ steps.ecr-repository.outputs.name }}
# Production build/deploy runs only from the canonical deploy repo (CD_DEPLOY_ENABLED).
if: github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true'
runs-on: depot-ubuntu-24.04
@@ -62,6 +62,12 @@ jobs:
- name: Set up Depot CLI
uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1
+ - name: Expose ECR repository
+ id: ecr-repository
+ shell: bash
+ run: |
+ echo "name=${ECR_REPOSITORY:?ECR_REPOSITORY is unset}" >> "$GITHUB_OUTPUT"
+
- name: Docker meta and registry login
id: docker-meta
uses: ./.github/actions/docker-meta