Files
fitness-app/.gitea/workflows/deploy.yaml
T
robre 1edeb7ba58
Build and Deploy Fitness App / build-and-deploy (push) Failing after 0s
Fix: Docker-Socket nur einmal einbinden
2026-05-09 13:19:19 +02:00

31 lines
741 B
YAML

name: Build and Deploy Fitness App
on:
push:
branches: [ "master" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/fitness:/opt/fitness
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Build Backend Image
run: |
docker build -f apps/api/Dockerfile -t fitness-api:latest .
- name: Build Frontend Image
run: |
docker build -f apps/web/Dockerfile -t fitness-web:latest .
- name: Restart Application
run: |
cd /opt/fitness
docker compose down
docker compose up -d