Update .forgejo/workflows/release.yml

This commit is contained in:
root 2025-06-25 11:07:18 +01:00
parent 563be82cb3
commit f265687fcc

View file

@ -71,10 +71,11 @@ jobs:
run: | run: |
cd src/main/webapp cd src/main/webapp
npm run build npm run build
# DEBUG .m2 repo # Build the backend (JAR). NOTE: the -Dmaven.download.parallel=false will force MAVEN to have a single connection for downloads, without this I can get "Connection reset"
- name: Debug .m2 cache state - name: Build backend (Spring Boot)
run: | run: |
echo "DEBUG Outputs ************************* "
echo "Container hostname: $(hostname)" echo "Container hostname: $(hostname)"
echo "Runner working dir: $PWD" echo "Runner working dir: $PWD"
echo "Runner user: $(whoami)" echo "Runner user: $(whoami)"
@ -82,11 +83,9 @@ jobs:
ls -lhR ~/.m2/repository | head -n 100 || echo "No .m2/repository found" ls -lhR ~/.m2/repository | head -n 100 || echo "No .m2/repository found"
echo "Disk usage:" echo "Disk usage:"
du -sh ~/.m2/repository || echo "No .m2 directory found" du -sh ~/.m2/repository || echo "No .m2 directory found"
echo " "
# Build the backend (JAR). NOTE: the -Dmaven.download.parallel=false will force MAVEN to have a single connection for downloads, without this I can get "Connection reset" echo "BUILD Outputs ************************* "
- name: Build backend (Spring Boot) mvn clean package -Pprod -DskipTests -Dmaven.download.parallel=false -Dmaven.repo.local=/root/.m2/repository -s .forgejo/workflows/ci-settings.xml
run: |
mvn clean package -Pprod -DskipTests -Dmaven.download.parallel=false -s .forgejo/workflows/ci-settings.xml
container: container:
image: maven:3.9-eclipse-temurin-17 image: maven:3.9-eclipse-temurin-17
volumes: volumes: