From 273d3f9dba1e36caf18138b32cf4dc47fb2c0be0 Mon Sep 17 00:00:00 2001 From: Andris Enins Date: Tue, 19 May 2026 12:47:49 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20install=20Maven=203.9.9=20in=20docker=20?= =?UTF-8?q?build=20job=20=E2=80=94=20same=20fix=20as=20ci.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actions/setup-java@v4 installs the JDK but not Maven itself. pi-runner does not have mvn pre-installed. Add an explicit curl install step matching the approach used in backend/Dockerfile. --- .gitea/workflows/docker.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index 3953f74..2e0016f 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -81,6 +81,15 @@ jobs: java-version: '21' cache: maven + # actions/setup-java installs the JDK but not Maven. + # pi-runner has no pre-installed mvn — download the same version used + # in backend/Dockerfile to keep the build environment consistent. + - name: Install Maven 3.9.9 + run: | + curl -fsSL https://archive.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz \ + | tar -xz -C /opt + echo "/opt/apache-maven-3.9.9/bin" >> $GITHUB_PATH + - name: Build JAR (native — avoids QEMU Maven download) working-directory: backend run: mvn -q -ntp clean package -DskipTests @@ -143,7 +152,7 @@ jobs: docker compose ps ' - # ── Build failure notification ─────────────────────────────────────────────── + # ── Build failure notification ────────────────────────────────────────────── notify-failure: name: Notify — build failure runs-on: ubuntu-latest