: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
chore(ci): publish posthog-cloud-prs to the shared-services ECR (#125496)
Michi874b956f4cd9
diff --git a/.github/workflows/container-images-ci.yml b/.github/workflows/container-images-ci.ymlindex 7491e6a99793..20362ca6c558 100644--- a/.github/workflows/container-images-ci.yml+++ b/.github/workflows/container-images-ci.yml@@ -177,8 +177,9 @@ jobs:with:actions-id-token-request-url: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL }}push-image: ${{ !startsWith(github.head_ref, 'trunk-merge/') }}- # PR-only publish role: any branch, but can ONLY push to posthog-cloud-prs (not posthog-cloud).- aws-role-to-assume: ${{ vars.AWS_ECR_POSTHOG_PRS_PUBLISH_IAM_ROLE }}+ # PR publish role in the shared-services ECR: any branch, but it can push only to the+ # *-prs repositories (posthog-cloud-prs here), never to posthog-cloud.+ aws-role-to-assume: ${{ secrets.AWS_ECR_SHARED_SERVICES_POSTHOG_PRS_PUBLISH_IAM_ROLE }}dockerhub-username: ${{ secrets.DOCKERHUB_USER }}dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}pr-number: ${{ !startsWith(github.head_ref, 'trunk-merge/') && github.event.number || '' }}@@ -222,7 +223,7 @@ jobs:- name: Configure AWS credentialsuses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0with:- role-to-assume: ${{ vars.AWS_ECR_POSTHOG_PRS_PUBLISH_IAM_ROLE }}+ role-to-assume: ${{ secrets.AWS_ECR_SHARED_SERVICES_POSTHOG_PRS_PUBLISH_IAM_ROLE }}aws-region: us-east-1- name: Login to Amazon ECRdiff --git a/.github/workflows/container-images-label-ci.yml b/.github/workflows/container-images-label-ci.ymlindex 625a792d7c94..1b62ea665a7e 100644--- a/.github/workflows/container-images-label-ci.yml+++ b/.github/workflows/container-images-label-ci.yml@@ -36,7 +36,7 @@ jobs:with:actions-id-token-request-url: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL }}push-image: true- aws-role-to-assume: ${{ vars.AWS_ECR_POSTHOG_PRS_PUBLISH_IAM_ROLE }}+ aws-role-to-assume: ${{ secrets.AWS_ECR_SHARED_SERVICES_POSTHOG_PRS_PUBLISH_IAM_ROLE }}dockerhub-username: ${{ secrets.DOCKERHUB_USER }}dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}pr-number: ${{ github.event.number }}