Fix: Explizit ins Workspace-Verzeichnis wechseln + Debug
Build and Deploy Fitness App / build-and-deploy (push) Failing after 16s
Build and Deploy Fitness App / build-and-deploy (push) Failing after 16s
This commit is contained in:
@@ -15,17 +15,27 @@ jobs:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Debug - Zeige Verzeichnisinhalt
|
||||
run: |
|
||||
pwd
|
||||
ls -la
|
||||
ls -la apps/api/ || echo "api-Ordner nicht gefunden"
|
||||
ls -la apps/web/ || echo "web-Ordner nicht gefunden"
|
||||
|
||||
- name: Build Backend Image
|
||||
run: |
|
||||
cd /workspace/robre/fitness-app
|
||||
docker build -f apps/api/Dockerfile -t fitness-api:latest .
|
||||
|
||||
- name: Build Frontend Image
|
||||
run: |
|
||||
cd /workspace/robre/fitness-app
|
||||
docker build -f apps/web/Dockerfile -t fitness-web:latest .
|
||||
|
||||
- name: Restart Application
|
||||
run: |
|
||||
cd /opt/fitness || mkdir -p /opt/fitness
|
||||
docker stop fitness-web fitness-api 2>/dev/null || true
|
||||
docker rm fitness-web fitness-api 2>/dev/null || true
|
||||
cd /workspace/robre/fitness-app
|
||||
docker run -d --name fitness-api --network fitness_proxy-net -v fitness-data:/app/data fitness-api:latest
|
||||
docker run -d --name fitness-web --network fitness_proxy-net -e VIRTUAL_HOST=robre.de,www.robre.de -e LETSENCRYPT_HOST=robre.de,www.robre.de -e VIRTUAL_PORT=80 fitness-web:latest
|
||||
Reference in New Issue
Block a user