This commit is contained in:
@@ -7,25 +7,22 @@ on:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest # auf dem Host (nicht in einem Container)
|
||||
|
||||
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
|
||||
run: echo "172.26.0.2 gitea" | sudo tee -a /etc/hosts
|
||||
|
||||
- name: 🛠 Baue das Projekt mit Gradle (ohne Tests)
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v "${PWD}:/app" \
|
||||
-w /app \
|
||||
gradle:8.7-jdk21 \
|
||||
chmod +x ./gradlew
|
||||
./gradlew build -x test
|
||||
|
||||
- name: 🐳 Docker Compose Deploy (ohne Build)
|
||||
run: docker compose -f ./compose.yml up -d
|
||||
- name: 🐳 Docker Compose Build & Deploy
|
||||
run: docker compose -f ./compose.yml up -d --build
|
||||
|
||||
- name: 🧹 Clean Up (optional)
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user