initial implementation for continuous deployment

This commit is contained in:
alex
2025-02-06 12:54:27 +01:00
parent fbc528b5e2
commit 691f9972f2
5 changed files with 205 additions and 0 deletions

31
.github/workflows/deploy-views.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Deploy SQL Views
on:
workflow_dispatch:
env:
POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}
POSTGRES_PORT: ${{ secrets.POSTGRES_PORT }}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
jobs:
deploy-views:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy SQL views
run: python scripts/deploy_views.py