fix: streamline build workflow by removing unnecessary steps
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 27s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 27s
This commit is contained in:
@@ -9,30 +9,23 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
# 1. Git Repository aktualisieren
|
- name: Checkout code
|
||||||
- name: Update repository
|
uses: actions/checkout@v3
|
||||||
run: |
|
|
||||||
git reset --hard
|
|
||||||
git pull
|
|
||||||
|
|
||||||
# 2. Frontend bauen
|
|
||||||
- name: Build Frontend
|
- name: Build Frontend
|
||||||
run: |
|
run: |
|
||||||
cd frontend
|
cd frontend
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
# 3. Backend Dependencies
|
|
||||||
- name: Setup Backend
|
- name: Setup Backend
|
||||||
run: |
|
run: |
|
||||||
cd backend
|
cd backend
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
# 4. Backend neu starten
|
|
||||||
- name: Restart Backend
|
- name: Restart Backend
|
||||||
run: |
|
run: |
|
||||||
sudo systemctl restart mitm-backend
|
sudo systemctl restart mitm-backend
|
||||||
|
|||||||
Reference in New Issue
Block a user