-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.23 KB
/
Copy pathdeploy.yml
File metadata and controls
48 lines (40 loc) · 1.23 KB
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
name: Manual Deploy to VDS
on:
workflow_dispatch:
permissions:
contents: read
jobs:
deploy-vds:
runs-on: ubuntu-latest
steps:
- name: Deploy to VDS via SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VDS_HOST }}
username: ${{ secrets.VDS_USER }}
key: ${{ secrets.VDS_SSH_KEY }}
script: |
# cd /opt/bubblebrain
# git pull
# docker-compose up -d --build
# docker image prune -f
echo "Deployment step triggered manually. Uncomment commands to enable."
smoke-test:
needs: deploy-vds
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Python 3.13
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install --no-root
- name: Run Remote Integration Tests
env:
BOT_SERVER_URL: ${{ secrets.PRODUCTION_BOT_URL }}
API_KEY_SECRET: ${{ secrets.PRODUCTION_API_KEY }}
run: poetry run pytest -m "remote" -v