@@ -1,4 +1,4 @@
|
||||
name: Sync repository
|
||||
name: Deploy repository
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -7,7 +7,7 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
deploy:
|
||||
runs-on: rezeptfinder-runner
|
||||
|
||||
steps:
|
||||
@@ -19,14 +19,14 @@ jobs:
|
||||
rsync -a --delete \
|
||||
--exclude .git \
|
||||
--exclude .gitea \
|
||||
--exclude .env \
|
||||
--exclude venv \
|
||||
--exclude .venv \
|
||||
--exclude node_modules \
|
||||
./ /opt/rezept_finder/
|
||||
|
||||
deploy_backend:
|
||||
runs-on: rezeptfinder-runner
|
||||
|
||||
steps:
|
||||
- name: Prepare Python venv
|
||||
- name: Prepare Python venv
|
||||
run: |
|
||||
python3 -m venv /opt/rezept_finder/venv || true
|
||||
/opt/rezept_finder/venv/bin/pip install --upgrade pip
|
||||
/opt/rezept_finder/venv/bin/pip install -r /opt/rezept_finder/backend/requirements.txt
|
||||
/opt/rezept_finder/venv/bin/pip install -r /opt/rezept_finder/backend/requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user