Add GitHub Actions workflow for building and deploying the fitness app, including backend and frontend image builds, and application restart steps. Update assembly informational version for API project.
Build and Deploy Fitness App / build-and-deploy (push) Failing after 56s

This commit is contained in:
2026-05-09 13:12:44 +02:00
parent b8cfa1689f
commit c3b345e9c4
3 changed files with 36 additions and 2 deletions
+34
View File
@@ -0,0 +1,34 @@
name: Build and Deploy Fitness App
on:
push:
branches: [ "master" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
# Der Runner braucht Zugriff auf Docker und dein Projektverzeichnis
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/fitness:/opt/fitness
steps:
- name: Checkout Code
uses: actions/checkout@v4
# Holt den neuesten Code aus deinem Repository in den Runner
- 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
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0e9377739ecf945e0da1e75a85e0a06a95cd0d00")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b8cfa1689f98c7e0c31ccf4539ea577e6b68cb59")]
[assembly: System.Reflection.AssemblyProductAttribute("Api")]
[assembly: System.Reflection.AssemblyTitleAttribute("Api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
@@ -1 +1 @@
ffe41f120d57867c590b01993978902e9fec8bbb7e05b266dbeabfa061be576e
d4e4f41d7559ee209abb748e9bc1230fd1419b674ba228ed2bc5b4087ec934e3