mirror of
https://github.com/SyncrowIOT/data.git
synced 2026-03-11 05:31:44 +00:00
initial implementation for continuous deployment
This commit is contained in:
31
.github/workflows/deploy-views.yml
vendored
Normal file
31
.github/workflows/deploy-views.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user