[appimage] Runner-nativ bauen statt rust:1.83-bookworm
Some checks failed
Build AppImage / build (push) Failing after 7s

Der 17-Forgejo-Runner (docker:host-Label) hat Rust 1.87, Node 22,
GTK, WebKit, AppIndicator, patchelf usw. bereits aus dem
docker.forgejo-runner-Image vorinstalliert. Der bisherige
container:-Block mit rust:1.83-bookworm + apt-get install hat
wegen DNS/Netzwerk in der DinD-Umgebung versagt.

Loesung: container: komplett entfernen, Job laeuft direkt im
Runner. Spart den Pull, spart die apt-Installationen und umgeht
das DNS-Problem.
This commit is contained in:
Eddy 2026-04-15 22:29:31 +02:00
parent 51b5a58c63
commit 59046f5eb1

View file

@ -1,5 +1,6 @@
# Claude Desktop — AppImage Build Pipeline # Claude Desktop — AppImage Build Pipeline
# Triggert bei [appimage] im Commit oder bei Release-Tags (v*) # Triggert bei [appimage] im Commit oder bei Release-Tags (v*)
# Runner: data-it/forgejo-runner mit Rust + GTK vorinstalliert
name: Build AppImage name: Build AppImage
@ -14,40 +15,17 @@ jobs:
build: build:
runs-on: docker runs-on: docker
if: contains(github.event.head_commit.message, '[appimage]') || startsWith(github.ref, 'refs/tags/v') if: contains(github.event.head_commit.message, '[appimage]') || startsWith(github.ref, 'refs/tags/v')
container:
image: rust:1.83-bookworm
options: --dns 8.8.8.8 --dns 1.1.1.1
steps: steps:
- name: Configure DNS Fallback
run: |
# DNS-Fix für DinD-Umgebung
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- name: Checkout - name: Checkout
run: | run: |
git clone --depth 1 --branch "${GITHUB_REF_NAME}" \ git clone --depth 1 --branch "${GITHUB_REF_NAME}" \
"https://oauth2:${{ secrets.REGISTRY_TOKEN }}@git.data-it-solution.de/${GITHUB_REPOSITORY}.git" . "https://oauth2:${{ secrets.REGISTRY_TOKEN }}@git.data-it-solution.de/${GITHUB_REPOSITORY}.git" .
- name: Install Node.js - name: Show Rust Version
run: | run: |
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - rustc --version
apt-get install -y nodejs cargo --version
- name: Install System Dependencies
run: |
apt-get update
apt-get install -y \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
file \
wget
- name: Install npm packages - name: Install npm packages
run: npm ci run: npm ci
@ -64,6 +42,33 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "Version: ${VERSION}" echo "Version: ${VERSION}"
- name: Upload to Package Registry
run: |
APPIMAGE=$(ls src-tauri/target/release/bundle/appimage/*.AppImage | head -1)
FILENAME=$(basename "$APPIMAGE")
VERSION=$(grep '^version' src-tauri/Cargo.toml | head -1 | sed 's/.*"\(.*\)"/\1/')
echo "Lade $FILENAME (v${VERSION}) in Package Registry..."
# Latest löschen falls vorhanden
curl -s -X DELETE \
--user "data:${{ secrets.REGISTRY_TOKEN }}" \
"https://git.data-it-solution.de/api/packages/data/generic/claude-desktop/latest/${FILENAME}" || true
# Versioniert hochladen
curl -s -X PUT \
--user "data:${{ secrets.REGISTRY_TOKEN }}" \
--upload-file "$APPIMAGE" \
"https://git.data-it-solution.de/api/packages/data/generic/claude-desktop/${VERSION}/${FILENAME}"
# Latest hochladen
curl -s -X PUT \
--user "data:${{ secrets.REGISTRY_TOKEN }}" \
--upload-file "$APPIMAGE" \
"https://git.data-it-solution.de/api/packages/data/generic/claude-desktop/latest/${FILENAME}"
echo "Upload abgeschlossen: ${FILENAME} (v${VERSION})"
- name: Upload to Release - name: Upload to Release
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
run: | run: |