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] branches: [main]
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ gitea.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:
@@ -19,17 +19,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: maven:3.9.6-eclipse-temurin-21 image: maven:3.9.6-eclipse-temurin-21
options: --memory=8g options: --memory=10g
steps: steps:
- name: Install git, node, gcc, docker, buildx, and basic tools - name: Install git, gcc, docker, buildx, and basic tools
run: | run: |
apt-get update apt-get update
apt-get install -y git curl ca-certificates build-essential zlib1g-dev docker.io docker-buildx 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/* rm -rf /var/lib/apt/lists/*
git --version git --version
node --version
gcc --version gcc --version
docker --version docker --version
docker buildx version docker buildx version
@@ -51,15 +48,6 @@ jobs:
java-version: '21' java-version: '21'
components: 'native-image' 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) - name: Build (Native)
run: mvn package -Pnative -B -DskipTests -Dquarkus.native.native-image-xmx=4g run: mvn package -Pnative -B -DskipTests -Dquarkus.native.native-image-xmx=4g
@@ -80,7 +68,7 @@ jobs:
run: | run: |
set -e set -e
echo "=== Build Docker image ===" 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 "=== Login to Gitea Registry ==="
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login 10.5.0.195:3000 -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin 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) SHORT_SHA=$(echo "$GITHUB_SHA" | cut -c1-7)