diff --git a/.gitea/workflows/build-package.yml b/.gitea/workflows/build-package.yml index de62d6f..bd6e47a 100644 --- a/.gitea/workflows/build-package.yml +++ b/.gitea/workflows/build-package.yml @@ -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"