Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

infra: add porter for US worker (#2406)

Max Deichmann8483ac749c94
diff --git a/.github/workflows/porter_stack_worker.yml b/.github/workflows/porter_stack_worker.yml
deleted file mode 100644
index 442d5fefc6..0000000000
--- a/.github/workflows/porter_stack_worker.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-"on":
- push:
- branches:
- - main
-name: Deploy to worker
-jobs:
- porter-deploy:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- - name: Set Github tag
- id: vars
- run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- - name: Setup porter
- uses: porter-dev/[email protected]
- - name: Deploy stack
- timeout-minutes: 30
- run: exec porter apply
- env:
- PORTER_CLUSTER: "4037"
- PORTER_DEPLOYMENT_TARGET_ID: c22d8fa2-f97c-4e1f-9cae-83cc6bfbad35
- PORTER_HOST: https://dashboard.getporter.dev
- PORTER_PR_NUMBER: ${{ github.event.number }}
- PORTER_PROJECT: "12565"
- PORTER_REPO_NAME: ${{ github.event.repository.name }}
- PORTER_STACK_NAME: worker
- PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
- PORTER_TOKEN: ${{ secrets.PORTER_STACK_12565_4037 }}
diff --git a/.github/workflows/porter_stack_worker_staging.yml b/.github/workflows/porter_stack_worker_staging.yml
new file mode 100644
index 0000000000..9917467ace
--- /dev/null
+++ b/.github/workflows/porter_stack_worker_staging.yml
@@ -0,0 +1,29 @@
+"on":
+ push:
+ branches:
+ - main
+name: Deploy to worker (staging)
+jobs:
+ porter-deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+ - name: Set Github tag
+ id: vars
+ run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
+ - name: Setup porter
+ uses: porter-dev/[email protected]
+ - name: Deploy stack
+ timeout-minutes: 30
+ run: exec porter apply
+ env:
+ PORTER_CLUSTER: "4037"
+ PORTER_DEPLOYMENT_TARGET_ID: c22d8fa2-f97c-4e1f-9cae-83cc6bfbad35
+ PORTER_HOST: https://dashboard.getporter.dev
+ PORTER_PR_NUMBER: ${{ github.event.number }}
+ PORTER_PROJECT: "12565"
+ PORTER_REPO_NAME: ${{ github.event.repository.name }}
+ PORTER_STACK_NAME: worker
+ PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
+ PORTER_TOKEN: ${{ secrets.PORTER_STACK_12565_4037 }}
diff --git a/.github/workflows/porter_stack_worker_us.yml b/.github/workflows/porter_stack_worker_us.yml
new file mode 100644
index 0000000000..a67295b215
--- /dev/null
+++ b/.github/workflows/porter_stack_worker_us.yml
@@ -0,0 +1,29 @@
+"on":
+ push:
+ branches:
+ - production
+name: Deploy to worker (US)
+jobs:
+ porter-deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+ - name: Set Github tag
+ id: vars
+ run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
+ - name: Setup porter
+ uses: porter-dev/[email protected]
+ - name: Deploy stack
+ timeout-minutes: 30
+ run: exec porter apply
+ env:
+ PORTER_CLUSTER: "4038"
+ PORTER_DEPLOYMENT_TARGET_ID: 260cd04e-5dc8-4b22-a291-ad4453f981f7
+ PORTER_HOST: https://dashboard.getporter.dev
+ PORTER_PR_NUMBER: ${{ github.event.number }}
+ PORTER_PROJECT: "12565"
+ PORTER_REPO_NAME: ${{ github.event.repository.name }}
+ PORTER_STACK_NAME: worker
+ PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
+ PORTER_TOKEN: ${{ secrets.PORTER_STACK_12565_4038 }}