fix(ci): remove atomic updates for trigger (#1478)

This commit is contained in:
Waleed
2025-09-27 22:37:28 -07:00
committed by GitHub
parent 38dd2d0f23
commit 67c993d743
3 changed files with 4 additions and 54 deletions

View File

@@ -28,7 +28,7 @@ jobs:
packages: write
id-token: write
# Deploy Trigger.dev with skip-promotion (after builds complete to ensure atomicity)
# Deploy Trigger.dev (after builds complete)
trigger-deploy:
name: Deploy Trigger.dev
needs: build-images
@@ -49,18 +49,10 @@ jobs:
uses: ./.github/workflows/migrations.yml
secrets: inherit
# Promote Trigger.dev deployment after ECS completes
trigger-promote:
name: Promote Trigger.dev
needs: migrations
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging')
uses: ./.github/workflows/trigger-promote.yml
secrets: inherit
# Process docs embeddings if needed
process-docs:
name: Process Docs
needs: trigger-promote
needs: migrations
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging')
uses: ./.github/workflows/docs-embeddings.yml
secrets: inherit

View File

@@ -34,9 +34,9 @@ jobs:
- name: Deploy to Trigger.dev (Staging)
if: github.ref == 'refs/heads/staging'
working-directory: ./apps/sim
run: npx --yes trigger.dev@4.0.4 deploy -e staging --skip-promotion
run: npx --yes trigger.dev@4.0.4 deploy -e staging
- name: Deploy to Trigger.dev (Production)
if: github.ref == 'refs/heads/main'
working-directory: ./apps/sim
run: npx --yes trigger.dev@4.0.4 deploy --skip-promotion
run: npx --yes trigger.dev@4.0.4 deploy

View File

@@ -1,42 +0,0 @@
name: Trigger.dev Promote
on:
workflow_call:
workflow_dispatch:
jobs:
promote:
name: Promote Trigger.dev
runs-on: blacksmith-4vcpu-ubuntu-2404
concurrency:
group: trigger-promote-${{ github.ref }}
cancel-in-progress: false
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Promote Trigger.dev (Staging)
if: github.ref == 'refs/heads/staging'
working-directory: ./apps/sim
run: npx --yes trigger.dev@4.0.4 deploy promote --latest -e staging
- name: Promote Trigger.dev (Production)
if: github.ref == 'refs/heads/main'
working-directory: ./apps/sim
run: npx --yes trigger.dev@4.0.4 deploy promote --latest