.gitea/workflows/build-package.yml aktualisiert
Some checks failed
Build Arch Package / build-package (push) Failing after 1m16s
Some checks failed
Build Arch Package / build-package (push) Failing after 1m16s
This commit is contained in:
@@ -10,21 +10,23 @@ jobs:
|
|||||||
build-package:
|
build-package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:base-devel # oder verwende ein custom image
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Node.js for Actions
|
||||||
|
run: |
|
||||||
|
pacman -Syu --noconfirm
|
||||||
|
pacman -S --noconfirm nodejs npm git
|
||||||
|
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Build Environment
|
- name: Setup Build Environment
|
||||||
run: |
|
run: |
|
||||||
# System aktualisieren
|
# Build-Tools sind bereits in base-devel enthalten
|
||||||
pacman -Syu --noconfirm
|
pacman -S --noconfirm namcap pacman-contrib sudo
|
||||||
|
|
||||||
# Build-Tools installieren
|
# Build-User erstellen
|
||||||
pacman -S --noconfirm base-devel git namcap pacman-contrib sudo
|
|
||||||
|
|
||||||
# Build-User erstellen (makepkg darf nicht als root laufen)
|
|
||||||
useradd -m -G wheel builder
|
useradd -m -G wheel builder
|
||||||
echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||||
|
|
||||||
@@ -49,12 +51,3 @@ jobs:
|
|||||||
name: arch-packages
|
name: arch-packages
|
||||||
path: '*.pkg.tar.zst'
|
path: '*.pkg.tar.zst'
|
||||||
retention-days: 30
|
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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user