fix(ci): remove obsolete Node.js setup, use Gitea-compatible syntax
CI / Build Native (push) Failing after 1m7s

- 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
This commit is contained in:
2026-08-15 19:52:06 -04:00
parent 71d8050515
commit 209ef9fb05
+4 -16
View File
@@ -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)