Fix typo and align service names
Some checks failed
Build and Publish Docker Images / build-backend (backend/infrastructure/gateway/Dockerfile, api-gateway) (push) Failing after 8s
Build and Publish Docker Images / build-backend (backend/services/ping/Dockerfile, ping-service) (push) Failing after 6s
Build and Publish Docker Images / build-backend (config/docker/keycloak/Dockerfile, keycloak) (push) Failing after 6s
Build and Publish Docker Images / build-frontend (push) Failing after 4s
Some checks failed
Build and Publish Docker Images / build-backend (backend/infrastructure/gateway/Dockerfile, api-gateway) (push) Failing after 8s
Build and Publish Docker Images / build-backend (backend/services/ping/Dockerfile, ping-service) (push) Failing after 6s
Build and Publish Docker Images / build-backend (config/docker/keycloak/Dockerfile, keycloak) (push) Failing after 6s
Build and Publish Docker Images / build-frontend (push) Failing after 4s
This commit is contained in:
parent
12d30fc698
commit
0dcaa6bc10
|
|
@ -20,17 +20,18 @@ env:
|
||||||
IMAGE_PREFIX: mocode-software/meldestelle
|
IMAGE_PREFIX: mocode-software/meldestelle
|
||||||
JAVA_VERSION: '25'
|
JAVA_VERSION: '25'
|
||||||
GRADLE_VERSION: '9.3.1'
|
GRADLE_VERSION: '9.3.1'
|
||||||
JVM_OPTS_ARM64: "-XX:ActiveProcessorCount=12 -XX:+UseG1GC -XX:+UseTransparentHugePages -XX:+UseSVE=1"
|
# Optimierte JVM Flags für den ARM-Runner
|
||||||
|
JVM_OPTS_ARM64: "-XX:ActiveProcessorCount=8 -XX:+UseG1GC -XX:+UseTransparentHugePages -XX:+UseSVE=1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# JOB 1: Infrastruktur & Backend (Ohne JS-Build)
|
# JOB 1: Backend Services & Keycloak
|
||||||
build-backend:
|
build-backend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- service: gateway
|
- service: api-gateway
|
||||||
dockerfile: backend/infrastructure/gateway/Dockerfile
|
dockerfile: backend/infrastructure/gateway/Dockerfile
|
||||||
- service: ping-service
|
- service: ping-service
|
||||||
dockerfile: backend/services/ping/Dockerfile
|
dockerfile: backend/services/ping/Dockerfile
|
||||||
|
|
@ -41,7 +42,7 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up JDK ${{ env.JAVA_VERSION }}
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
|
@ -71,40 +72,35 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ${{ matrix.dockerfile }}
|
file: ${{ matrix.dockerfile }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.REGISTRYRequested }}/${{ env.IMAGE_PREFIX }}/${{ matrix.service }}:latest
|
# Hier war der Fehler: Jetzt korrekt auf env.REGISTRY
|
||||||
|
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ matrix.service }}:latest
|
||||||
build-args: |
|
build-args: |
|
||||||
GRADLE_VERSION=${{ env.GRADLE_VERSION }}
|
GRADLE_VERSION=${{ env.GRADLE_VERSION }}
|
||||||
JAVA_VERSION=${{ env.JAVA_VERSION }}
|
JAVA_VERSION=${{ env.JAVA_VERSION }}
|
||||||
JVM_OPTS_APPEND=${{ env.JVM_OPTS_ARM64 }}
|
JVM_OPTS_APPEND=${{ env.JVM_OPTS_ARM64 }}
|
||||||
DOCKER_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
DOCKER_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||||
|
|
||||||
# JOB 2: Frontend (Mit speicherintensivem Kotlin/JS Build)
|
# JOB 2: Das speicherintensive Frontend (Web-App)
|
||||||
build-frontend:
|
build-frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up JDK ${{ env.JAVA_VERSION }}
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
- name: Setup Gradle Cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-frontend-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
||||||
|
|
||||||
- name: Build Frontend (Kotlin JS)
|
- name: Build Frontend (Kotlin JS)
|
||||||
run: |
|
run: |
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
|
# Reduzierte Worker, um den RAM (10GB) nicht zu sprengen
|
||||||
./gradlew :frontend:shells:meldestelle-portal:jsBrowserDistribution \
|
./gradlew :frontend:shells:meldestelle-portal:jsBrowserDistribution \
|
||||||
-Pproduction=true \
|
-Pproduction=true \
|
||||||
--max-workers=4 \
|
--max-workers=4 \
|
||||||
|
--no-daemon \
|
||||||
-Dkotlin.daemon.jvm.options="-Xmx4g"
|
-Dkotlin.daemon.jvm.options="-Xmx4g"
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user