From 209ef9fb056f461b25449748bbaca8ee1f97a5ab Mon Sep 17 00:00:00 2001 From: Daniel Arroyo Date: Sat, 15 Aug 2026 19:52:06 -0400 Subject: [PATCH] fix(ci): remove obsolete Node.js setup, use Gitea-compatible syntax - Remove Node.js installation (frontend is now static Qute/Alpine) - Remove src/frontend/node_modules cache (no longer exists) - Change github.workflow to gitea.workflow for Gitea Actions compatibility - Increase container memory from 8g to 10g for native builds - Add BUILDKIT_INLINE_CACHE=1 for faster Docker builds --- .gitea/workflows/ci.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ff89c21..a7de356 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [main] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ gitea.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: @@ -19,17 +19,14 @@ jobs: runs-on: ubuntu-latest container: image: maven:3.9.6-eclipse-temurin-21 - options: --memory=8g + options: --memory=10g steps: - - name: Install git, node, gcc, docker, buildx, and basic tools + - name: Install git, gcc, docker, buildx, and basic tools run: | apt-get update apt-get install -y git curl ca-certificates build-essential zlib1g-dev docker.io docker-buildx - curl -fsSL https://deb.nodesource.com/setup_22.x | bash - - apt-get install -y nodejs rm -rf /var/lib/apt/lists/* git --version - node --version gcc --version docker --version docker buildx version @@ -51,15 +48,6 @@ jobs: java-version: '21' components: 'native-image' - - name: Cache Node + npm - uses: actions/cache@v4 - with: - path: | - target/node - src/frontend/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('src/frontend/package-lock.json') }} - restore-keys: ${{ runner.os }}-node- - - name: Build (Native) run: mvn package -Pnative -B -DskipTests -Dquarkus.native.native-image-xmx=4g @@ -80,7 +68,7 @@ jobs: run: | set -e echo "=== Build Docker image ===" - docker buildx build -t shot-crafter-calculator:ci . + docker buildx build -t shot-crafter-calculator:ci --build-arg BUILDKIT_INLINE_CACHE=1 . echo "=== Login to Gitea Registry ===" echo "${{ secrets.REGISTRY_TOKEN }}" | docker login 10.5.0.195:3000 -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin SHORT_SHA=$(echo "$GITHUB_SHA" | cut -c1-7)