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): build and publish the streamlit sandbox image (#73997)

Jovan Sakovic950e2378b648
diff --git a/.github/workflows/cd-sandbox-base-image.yml b/.github/workflows/cd-sandbox-base-image.yml
index c86508e8ba14..8794fadbda4c 100644
--- a/.github/workflows/cd-sandbox-base-image.yml
+++ b/.github/workflows/cd-sandbox-base-image.yml
@@ -169,7 +169,7 @@ jobs:
contains(github.event.pull_request.labels.*.name, 'build-tasks-sandbox-image')
)
runs-on: depot-ubuntu-24.04
- timeout-minutes: 10
+ timeout-minutes: 15
permissions:
id-token: write # allow issuing OIDC tokens for this workflow run
contents: read # allow at least reading the repo contents, add other permissions if necessary
@@ -266,6 +266,17 @@ jobs:
build-args: |
BASE_IMAGE=ghcr.io/posthog/posthog-sandbox-base:${{ github.sha }}
+ - name: Build and push container image (streamlit)
+ id: build-streamlit
+ uses: depot/build-push-action@5f3b3c2e5a00f0093de47f657aeaefcedff27d18 # v1.17.0
+ with:
+ context: . # use local checkout (includes downloaded artifact)
+ file: ./products/tasks/backend/sandbox/images/Dockerfile.sandbox-streamlit
+ buildx-fallback: false # the fallback is so slow it's better to just fail
+ push: ${{ github.event_name == 'pull_request' || vars.CD_DEPLOY_ENABLED == 'true' }}
+ tags: ${{ github.ref == 'refs/heads/master' && format('ghcr.io/posthog/posthog-sandbox-streamlit:master,ghcr.io/posthog/posthog-sandbox-streamlit:{0}', github.sha) || format('ghcr.io/posthog/posthog-sandbox-streamlit:{0}', github.sha) }}
+ platforms: linux/arm64,linux/amd64
+
# Single required status check for branch protection. Add future sandbox
# image jobs to `needs` here rather than reconfiguring GitHub.
# NOT registered as required yet: the trigger-level pull_request paths