Skip to content

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

infra: Enable Porter Application (#2435)

porter-deployment-app[bot]6928d561b947
diff --git a/.github/workflows/porter_stack_web_staging.yml b/.github/workflows/porter_stack_web_staging.yml
new file mode 100644
index 0000000000..0066473d00
--- /dev/null
+++ b/.github/workflows/porter_stack_web_staging.yml
@@ -0,0 +1,29 @@
+"on":
+ push:
+ branches:
+ - main
+name: Deploy to web
+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: web
+ PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
+ PORTER_TOKEN: ${{ secrets.PORTER_STACK_12565_4037 }}
diff --git a/.github/workflows/porter_stack_web.yml b/.github/workflows/porter_stack_web_us_temp.yml
similarity index 74%
rename from .github/workflows/porter_stack_web.yml
rename to .github/workflows/porter_stack_web_us_temp.yml
index dc5854d2ba..aaba0ae47e 100644
--- a/.github/workflows/porter_stack_web.yml
+++ b/.github/workflows/porter_stack_web_us_temp.yml
@@ -1,7 +1,7 @@
"on":
push:
branches:
- - main
+ - production
name: Deploy to web
jobs:
porter-deploy:
@@ -18,12 +18,12 @@ jobs:
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_CLUSTER: "4054"
+ PORTER_DEPLOYMENT_TARGET_ID: cddc0f2a-bb19-401a-9819-29f59f76b101
+ PORTER_HOST: https://dashboard.porter.run
PORTER_PR_NUMBER: ${{ github.event.number }}
PORTER_PROJECT: "12565"
PORTER_REPO_NAME: ${{ github.event.repository.name }}
PORTER_STACK_NAME: web
PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
- PORTER_TOKEN: ${{ secrets.PORTER_STACK_12565_4037 }}
+ PORTER_TOKEN: ${{ secrets.PORTER_STACK_12565_4054 }}
diff --git a/.github/workflows/porter_stack_worker_us_temp.yml b/.github/workflows/porter_stack_worker_us_temp.yml
new file mode 100644
index 0000000000..c52b80e58e
--- /dev/null
+++ b/.github/workflows/porter_stack_worker_us_temp.yml
@@ -0,0 +1,29 @@
+"on":
+ push:
+ branches:
+ - production
+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: "4054"
+ PORTER_DEPLOYMENT_TARGET_ID: cddc0f2a-bb19-401a-9819-29f59f76b101
+ PORTER_HOST: https://dashboard.porter.run
+ 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_4054 }}