: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): honour PUBLIC_IMAGE_PUSH_PAUSED for credentials-service and agent-proxy (#118027)
Georges-Antoine Assiad7fba504aa0
diff --git a/.github/workflows/cd-agent-proxy-image.yml b/.github/workflows/cd-agent-proxy-image.ymlindex 79ee5efe3891..379730cdffb9 100644--- a/.github/workflows/cd-agent-proxy-image.yml+++ b/.github/workflows/cd-agent-proxy-image.yml@@ -46,6 +46,7 @@ jobs:dockerhub-username: ${{ secrets.DOCKERHUB_USER }}dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}push-to-dockerhub: 'false'+ push-to-ghcr: ${{ vars.PUBLIC_IMAGE_PUSH_PAUSED != 'true' }}- name: Set up Depot CLIuses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1diff --git a/.github/workflows/cd-credentials-service-image.yml b/.github/workflows/cd-credentials-service-image.ymlindex e465eb789501..152737ad5a75 100644--- a/.github/workflows/cd-credentials-service-image.yml+++ b/.github/workflows/cd-credentials-service-image.yml@@ -46,6 +46,7 @@ jobs:dockerhub-username: ${{ secrets.DOCKERHUB_USER }}dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}push-to-dockerhub: 'false'+ push-to-ghcr: ${{ vars.PUBLIC_IMAGE_PUSH_PAUSED != 'true' }}- name: Set up Depot CLIuses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1@@ -149,7 +150,7 @@ jobs:uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0- name: Login to ghcr.io- if: ${{ steps.ordered-release.outputs.tag != '' }}+ if: ${{ steps.ordered-release.outputs.tag != '' && vars.PUBLIC_IMAGE_PUSH_PAUSED != 'true' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:registry: ghcr.io@@ -176,6 +177,7 @@ jobs:shell: bashenv:GHCR_IMAGE: ghcr.io/posthog/posthog-credentials-service+ PUBLIC_IMAGE_PUSH_PAUSED: ${{ vars.PUBLIC_IMAGE_PUSH_PAUSED }}ECR_REGISTRY: ${{ steps.ecr-login.outputs.registry }}DIGEST: ${{ needs.build.outputs.sha }}ORDERED_ALIAS: ${{ steps.ordered-release.outputs.tag }}@@ -245,7 +247,11 @@ jobs:}status=0- publish_alias "$GHCR_IMAGE" || status=1+ if [ "$PUBLIC_IMAGE_PUSH_PAUSED" = "true" ]; then+ echo "::notice title=Ordered image alias skipped on ghcr::PUBLIC_IMAGE_PUSH_PAUSED is set, so only ECR gets the alias."+ else+ publish_alias "$GHCR_IMAGE" || status=1+ fiif [ -n "$ECR_REGISTRY" ]; thenpublish_alias "${ECR_REGISTRY}/posthog-credentials-service" || status=1else