Showing the changes to .github (1 of 8 files). Show all
Unified · Split
| @@ -77,12 +77,30 @@ jobs: · 76 unmodified lines | |||
| 77 | VITE_PUBLIC_SENTRY_DSN: ${{ secrets.VITE_PUBLIC_SENTRY_DSN }} | 77 | VITE_PUBLIC_SENTRY_DSN: ${{ secrets.VITE_PUBLIC_SENTRY_DSN }} |
| 78 | 78 | ||
| 79 | - name: Deploy cloud | 79 | - name: Deploy cloud |
| 80 | run: bun run wrangler deploy -c dist/server/wrangler.json | 80 | run: bun run wrangler deploy -c dist/server/wrangler.json --var GIT_COMMIT_SHA:${{ github.sha }} |
| 81 | working-directory: apps/cloud | 81 | working-directory: apps/cloud |
| 82 | env: | 82 | env: |
| 83 | CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | 83 | CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} |
| 84 | CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | 84 | CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |
| 85 | 85 | ||
| 86 | # Deploy marker: one event per deploy into the same Axiom dataset the | ||
| 87 | # worker traces land in, so a latency step-change lines up with its | ||
| 88 | # deploy in one query. Skipped (not failed) when the secret is absent, | ||
| 89 | # and never blocks the deploy. | ||
| 90 | - name: Record deploy marker in Axiom | ||
| 91 | env: | ||
| 92 | AXIOM_INGEST_TOKEN: ${{ secrets.AXIOM_INGEST_TOKEN }} | ||
| 93 | run: | | ||
| 94 | if [ -z "$AXIOM_INGEST_TOKEN" ]; then | ||
| 95 | echo "AXIOM_INGEST_TOKEN not configured; skipping deploy marker" | ||
| 96 | exit 0 | ||
| 97 | fi | ||
| 98 | curl -sf -X POST "https://api.axiom.co/v1/datasets/executor-cloud/ingest" \ | ||
| 99 | -H "Authorization: Bearer $AXIOM_INGEST_TOKEN" \ | ||
| 100 | -H "Content-Type: application/json" \ | ||
| 101 | -d "[{\"event\":\"deploy\",\"service\":\"executor-cloud\",\"commit_sha\":\"${{ github.sha }}\",\"actor\":\"${{ github.actor }}\",\"run_id\":\"${{ github.run_id }}\"}]" \ | ||
| 102 | || echo "deploy marker ingest failed (non-blocking)" | ||
| 103 | |||
| 86 | deploy-marketing: | 104 | deploy-marketing: |
| 87 | name: Deploy marketing | 105 | name: Deploy marketing |
| 88 | runs-on: blacksmith-4vcpu-ubuntu-2404 | 106 | runs-on: blacksmith-4vcpu-ubuntu-2404 |