forked from BerriAI/litellm
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.29 KB
/
pullpreview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: preview
on:
push:
branches:
- main
pull_request:
types: [labeled, unlabeled, synchronize, reopened]
env:
DNS: 'previews.sofatutor.us'
jobs:
deploy:
runs-on: ubuntu-22.04
if: github.event_name == 'push' || github.event.label.name == 'preview' || contains(github.event.pull_request.labels.*.name, 'preview')
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: sofatutor/pullpreview@sofatutor
with:
admins: mfittko,Ayushi1296
always_on: main
app_path: .
instance_type: small
dns: ${{ env.DNS }}
default_port: 8080
registries: docker://index.docker.io/v1
env:
AWS_REGION: eu-central-1
PULLPREVIEW_ENV_VARS: "DOMAIN=${{ env.DNS }},AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }},AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }},OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }},LITELLM_MASTER_KEY=${{ secrets.LITELLM_MASTER_KEY }},LITELLM_SALT_KEY=${{ secrets.LITELLM_SALT_KEY }}"
PULLPREVIEW_LAUNCH_COMMAND: COMPOSE_FILE=docker-compose.pullpreview.yml docker-compose up -d --build --force-recreate
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"