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): let a manual rasterizer run refresh deps and deploy (#123072)

Tom Piccirello9349718f19fd
diff --git a/.github/workflows/ci-recording-rasterizer-container.yml b/.github/workflows/ci-recording-rasterizer-container.yml
index e5d75623f1b8..b2fed4a55395 100644
--- a/.github/workflows/ci-recording-rasterizer-container.yml
+++ b/.github/workflows/ci-recording-rasterizer-container.yml
@@ -1,6 +1,8 @@
name: Build and deploy recording-rasterizer container image
on:
+ # A manual run from master works like the weekly schedule: it re-resolves the floated deps and
+ # deploys. Use it when a security fix in Chrome or a Debian package cannot wait for Monday.
workflow_dispatch:
# paths mirror the changes job's dorny filter, which still gates push events.
pull_request:
@@ -158,7 +160,7 @@ jobs:
platforms: linux/amd64
build-args: |
COMMIT_HASH=${{ github.sha }}
- DEPS_CACHE_BUST=${{ github.event_name == 'schedule' && github.run_id || 'pinned' }}
+ DEPS_CACHE_BUST=${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.run_id || 'pinned' }}
- name: Container image digest
env:
@@ -198,7 +200,7 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 5
needs: build
- if: github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true' && ((github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'schedule')
+ if: github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true' && (((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/master') || github.event_name == 'schedule')
permissions:
contents: read
steps:
@@ -220,8 +222,8 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
- # On a scheduled (cron) run there is no head_commit in the event payload, so reuse it
- # verbatim for push and synthesize a minimal commit object from git HEAD for schedule.
+ # A scheduled or manual run has no head_commit in the event payload, so reuse it verbatim
+ # for push and synthesize a minimal commit object from git HEAD for the other events.
- name: Resolve commit metadata
id: commit
shell: bash
@@ -231,7 +233,7 @@ jobs:
HEAD_COMMIT_TIMESTAMP: ${{ github.event.head_commit.timestamp }}
COMMIT_SHA: ${{ github.sha }}
run: |
- if [ "$EVENT_NAME" = "schedule" ]; then
+ if [ "$EVENT_NAME" != "push" ]; then
timestamp="$(git show -s --format=%cI HEAD)"
commit_json="$(jq -nc \
--arg id "$COMMIT_SHA" \