Files
mytimetracker/.gitea/workflows/buildAndDeply.yaml
Nils Burghardt fdf73b7eea
Some checks failed
Build-und-Deploy / build-and-deploy (push) Failing after 8s
Build und Deploy / build-and-deploy (push) Failing after 8s
Build / build (push) Has been cancelled
add pipeline 5
2025-07-13 15:07:48 +02:00

36 lines
815 B
YAML

name: Build-und-Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
container:
image: gradle:8.7-jdk21
options: --user=root
steps:
- name: 🧾 Repository auschecken
uses: actions/checkout@v3
- name: 🧼 IP-Adresse von Gitea zu /etc/hosts hinzufügen
run: echo "172.26.0.2 gitea" >> /etc/hosts
- name: 📦 Gradle Wrapper ausführbar machen
run: chmod +x ./gradlew
- name: 🛠 Baue das Projekt
run: ./gradlew build
- name: 🐳 Docker Compose Build & Deploy
run: |
apt update && apt install -y docker.io
docker compose -f ./compose.yml up -d --build
- name: 🧹 Clean Up (optional)
if: always()
run: docker system prune -f