.gitea/workflows/build-package.yml aktualisiert
Some checks failed
Build Arch Package / build-package (push) Failing after 1m16s

This commit is contained in:
2025-08-29 15:36:26 +02:00
parent 3a4606cbbf
commit ae41ad647f

View File

@@ -10,21 +10,23 @@ jobs:
build-package:
runs-on: ubuntu-latest
container:
image: archlinux:latest
image: archlinux:base-devel # oder verwende ein custom image
steps:
- name: Install Node.js for Actions
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm nodejs npm git
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Build Environment
run: |
# System aktualisieren
pacman -Syu --noconfirm
# Build-Tools sind bereits in base-devel enthalten
pacman -S --noconfirm namcap pacman-contrib sudo
# Build-Tools installieren
pacman -S --noconfirm base-devel git namcap pacman-contrib sudo
# Build-User erstellen (makepkg darf nicht als root laufen)
# Build-User erstellen
useradd -m -G wheel builder
echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
@@ -49,12 +51,3 @@ jobs:
name: arch-packages
path: '*.pkg.tar.zst'
retention-days: 30
- name: Deploy to Repository
if: github.ref == 'refs/heads/main'
run: |
# Packages zum Repository Server kopieren
scp *.pkg.tar.zst user@your-server:/srv/repository/
# Repository-Datenbank aktualisieren
ssh user@your-server "cd /srv/repository && repo-add custom.db.tar.xz *.pkg.tar.zst"