mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
improvement(runners): upgrade runners, remove trigger deploy action (#2082)
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
name: Build AMD64
|
name: Build AMD64
|
||||||
needs: test-build
|
needs: test-build
|
||||||
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging')
|
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:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
@@ -162,7 +162,7 @@ jobs:
|
|||||||
# Create GHCR multi-arch manifests (only for main, after both builds)
|
# Create GHCR multi-arch manifests (only for main, after both builds)
|
||||||
create-ghcr-manifests:
|
create-ghcr-manifests:
|
||||||
name: 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]
|
needs: [build-amd64, build-ghcr-arm64]
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
permissions:
|
permissions:
|
||||||
@@ -198,15 +198,7 @@ jobs:
|
|||||||
"${IMAGE_BASE}:${{ github.sha }}-arm64"
|
"${IMAGE_BASE}:${{ github.sha }}-arm64"
|
||||||
docker manifest push "${IMAGE_BASE}:${{ github.sha }}"
|
docker manifest push "${IMAGE_BASE}:${{ github.sha }}"
|
||||||
|
|
||||||
# Deploy Trigger.dev (after ECR images are pushed, runs in parallel with process-docs)
|
# Process docs embeddings (after ECR images are pushed)
|
||||||
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:
|
process-docs:
|
||||||
name: Process Docs
|
name: Process Docs
|
||||||
needs: build-amd64
|
needs: build-amd64
|
||||||
|
|||||||
2
.github/workflows/docs-embeddings.yml
vendored
2
.github/workflows/docs-embeddings.yml
vendored
@@ -7,7 +7,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
process-docs-embeddings:
|
process-docs-embeddings:
|
||||||
name: Process Documentation 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'
|
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
4
.github/workflows/images.yml
vendored
4
.github/workflows/images.yml
vendored
@@ -12,7 +12,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
build-amd64:
|
build-amd64:
|
||||||
name: Build AMD64
|
name: Build AMD64
|
||||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -146,7 +146,7 @@ jobs:
|
|||||||
|
|
||||||
create-ghcr-manifests:
|
create-ghcr-manifests:
|
||||||
name: 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]
|
needs: [build-amd64, build-ghcr-arm64]
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
55
.github/workflows/trigger-deploy.yml
vendored
55
.github/workflows/trigger-deploy.yml
vendored
@@ -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
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user