From 00ae7186921725dcf59c5a1c86a4188f516b936f Mon Sep 17 00:00:00 2001 From: Waleed Date: Thu, 20 Nov 2025 13:49:17 -0800 Subject: [PATCH] improvement(runners): upgrade runners, remove trigger deploy action (#2082) --- .github/workflows/ci.yml | 14 ++----- .github/workflows/docs-embeddings.yml | 2 +- .github/workflows/images.yml | 4 +- .github/workflows/trigger-deploy.yml | 55 --------------------------- 4 files changed, 6 insertions(+), 69 deletions(-) delete mode 100644 .github/workflows/trigger-deploy.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 007563d02..3dc2b0025 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: name: Build AMD64 needs: test-build if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging') - runs-on: blacksmith-4vcpu-ubuntu-2404 + runs-on: blacksmith-8vcpu-ubuntu-2404 permissions: contents: read packages: write @@ -162,7 +162,7 @@ jobs: # Create GHCR multi-arch manifests (only for main, after both builds) create-ghcr-manifests: name: Create GHCR Manifests - runs-on: blacksmith-4vcpu-ubuntu-2404 + runs-on: blacksmith-8vcpu-ubuntu-2404 needs: [build-amd64, build-ghcr-arm64] if: github.event_name == 'push' && github.ref == 'refs/heads/main' permissions: @@ -198,15 +198,7 @@ jobs: "${IMAGE_BASE}:${{ github.sha }}-arm64" docker manifest push "${IMAGE_BASE}:${{ github.sha }}" - # Deploy Trigger.dev (after ECR images are pushed, runs in parallel with process-docs) - trigger-deploy: - name: Deploy Trigger.dev - needs: build-amd64 - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging') - uses: ./.github/workflows/trigger-deploy.yml - secrets: inherit - - # Process docs embeddings (after ECR images are pushed, runs in parallel with trigger-deploy) + # Process docs embeddings (after ECR images are pushed) process-docs: name: Process Docs needs: build-amd64 diff --git a/.github/workflows/docs-embeddings.yml b/.github/workflows/docs-embeddings.yml index e01024a0e..1399b8502 100644 --- a/.github/workflows/docs-embeddings.yml +++ b/.github/workflows/docs-embeddings.yml @@ -7,7 +7,7 @@ on: jobs: process-docs-embeddings: name: Process Documentation Embeddings - runs-on: blacksmith-4vcpu-ubuntu-2404 + runs-on: blacksmith-8vcpu-ubuntu-2404 if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' steps: diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index 365539ca9..d708d4c4d 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -12,7 +12,7 @@ permissions: jobs: build-amd64: name: Build AMD64 - runs-on: blacksmith-4vcpu-ubuntu-2404 + runs-on: blacksmith-8vcpu-ubuntu-2404 strategy: fail-fast: false matrix: @@ -146,7 +146,7 @@ jobs: create-ghcr-manifests: name: Create GHCR Manifests - runs-on: blacksmith-4vcpu-ubuntu-2404 + runs-on: blacksmith-8vcpu-ubuntu-2404 needs: [build-amd64, build-ghcr-arm64] if: github.ref == 'refs/heads/main' strategy: diff --git a/.github/workflows/trigger-deploy.yml b/.github/workflows/trigger-deploy.yml deleted file mode 100644 index a3fed7619..000000000 --- a/.github/workflows/trigger-deploy.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Trigger.dev Deploy - -on: - workflow_call: - workflow_dispatch: - -jobs: - deploy: - name: Deploy to Trigger.dev - runs-on: blacksmith-4vcpu-ubuntu-2404 - concurrency: - group: trigger-deploy-${{ github.ref }} - cancel-in-progress: false - env: - TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }} - TRIGGER_PROJECT_ID: ${{ secrets.TRIGGER_PROJECT_ID }} - - 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: 1.2.22 - - - name: Cache Bun dependencies - uses: actions/cache@v4 - with: - path: | - ~/.bun/install/cache - node_modules - **/node_modules - key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} - restore-keys: | - ${{ runner.os }}-bun- - - - name: Install dependencies - run: bun install --frozen-lockfile - - - 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 - - - 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 -