This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
103 lines (99 loc) · 3.33 KB
/
builds.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: builds
on:
push:
branches: main
pull_request:
branches: main
jobs:
backend:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.2"
- name: Resolve dependencies
run: poetry export -f requirements.txt --without-hashes --output requirements.txt
- name: Build, run & check docker
env:
SUPERADMIN_GH_PAT: ${{ secrets.SUPERADMIN_GH_PAT }}
GH_OAUTH_ID: ${{ secrets.GH_OAUTH_ID }}
GH_OAUTH_SECRET: ${{ secrets.GH_OAUTH_SECRET }}
OLLAMA_MODEL: tinydolphin:1.1b-v2.8-q3_K_M
run: |
docker compose -f docker-compose.dev.yml up -d --build --wait backend
docker compose -f docker-compose.dev.yml logs
curl http://localhost:5050/status
grafana:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.2"
- name: Resolve dependencies
run: |
poetry export -f requirements.txt --without-hashes --output requirements.txt
- name: Build, run & check docker
env:
SUPERADMIN_GH_PAT: ${{ secrets.SUPERADMIN_GH_PAT }}
GH_OAUTH_ID: ${{ secrets.GH_OAUTH_ID }}
GH_OAUTH_SECRET: ${{ secrets.GH_OAUTH_SECRET }}
OLLAMA_MODEL: tinydolphin:1.1b-v2.8-q3_K_M
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pg_pwd
SUPERADMIN_LOGIN: dummy_login
SUPERADMIN_PWD: dummy_pwd
GF_ADMIN_USER: dummy_login
GF_ADMIN_PWD: dummy_pwd
run: |
docker compose -f docker-compose.yml up -d --build --wait grafana
docker compose -f docker-compose.yml logs
curl http://localhost:3000
gradio:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.2"
- name: Resolve dependencies
run: |
poetry export -f requirements.txt --without-hashes --output requirements.txt
poetry export -f requirements.txt --without-hashes --only demo --output demo/requirements.txt
- name: Build, run & check docker
env:
SUPERADMIN_GH_PAT: ${{ secrets.SUPERADMIN_GH_PAT }}
GH_OAUTH_ID: ${{ secrets.GH_OAUTH_ID }}
GH_OAUTH_SECRET: ${{ secrets.GH_OAUTH_SECRET }}
OLLAMA_MODEL: tinydolphin:1.1b-v2.8-q3_K_M
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pg_pwd
SUPERADMIN_LOGIN: dummy_login
SUPERADMIN_PWD: dummy_pwd
GF_ADMIN_USER: dummy_login
GF_ADMIN_PWD: dummy_pwd
run: |
docker compose -f docker-compose.yml up -d --build --wait gradio
docker compose -f docker-compose.yml logs
curl http://localhost:7860