Skip to content

feat(replay-vision): API validation + lens_result row column #120116

feat(replay-vision): API validation + lens_result row column

feat(replay-vision): API validation + lens_result row column #120116

#
# Build and push PostHog container images for AI evaluations to AWS ECR
#
# - posthog_ai_evals_build: build and push the PostHog container image to AWS ECR
#
name: AI Evals Container Images CD
on:
push:
branches:
- master
paths-ignore:
- 'rust/**'
- 'livestream/**'
- 'nodejs/**'
pull_request:
workflow_dispatch:
jobs:
posthog_ai_evals_build:
name: Build and push container image
if: |
github.repository == 'PostHog/posthog' && (
github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'build-ai-evals-image')
)
runs-on: depot-ubuntu-latest
timeout-minutes: 10
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
steps:
- name: Check out
uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Set up QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
- name: Set up Depot CLI
uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0
with:
role-to-assume: ${{ secrets.AWS_ECR_PUBLISH_IAM_ROLE }}
aws-region: us-east-1
- name: Login to Amazon ECR
id: aws-ecr
uses: aws-actions/amazon-ecr-login@f2e9fc6c2b355c1890b65e6f6f0e2ac3e6e22f78 # v2.1.2
- name: Build and push container image
id: build
uses: depot/build-push-action@5f3b3c2e5a00f0093de47f657aeaefcedff27d18 # v1.17.0
with:
project: c1f2m5s6zd
file: ./Dockerfile.ai-evals
buildx-fallback: false # the fallback is so slow it's better to just fail
push: true
tags: ${{ github.ref == 'refs/heads/master' && format('{0}/posthog-ai-evals:master,{0}/posthog-ai-evals:{1}', steps.aws-ecr.outputs.registry, github.sha) || format('{0}/posthog-ai-evals:{1}', steps.aws-ecr.outputs.registry, github.sha) }}
platforms: linux/arm64,linux/amd64
build-args: COMMIT_HASH=${{ github.sha }}