mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
ci: Build ISO from non-root user
Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>
This commit is contained in:
1 parent
46b067137a
commit
3666a8b36c
1 file changed
+9
-1
@@ -44,10 +44,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo pacman -Syu --noconfirm archiso cachyos-keyring mkinitcpio-archiso squashfs-tools grub
|
sudo pacman -Syu --noconfirm archiso cachyos-keyring mkinitcpio-archiso squashfs-tools grub
|
||||||
|
|
||||||
|
- name: Create build user
|
||||||
|
id: user-archiso
|
||||||
|
run: |
|
||||||
|
useradd builder -m
|
||||||
|
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
chmod -R a+rw .
|
||||||
|
|
||||||
- name: Build ISO (${{ steps.date.outputs.builddate }})
|
- name: Build ISO (${{ steps.date.outputs.builddate }})
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
./buildiso.sh
|
sudo -H -E -u builder ./buildiso.sh
|
||||||
|
|
||||||
- name: Upload ISO to artifacts
|
- name: Upload ISO to artifacts
|
||||||
id: upload
|
id: upload
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in new issue
Block a user