...
 
Commits (2)
image: base/devel:latest
build:
stage: build
before_script:
# Needed for archiso to mount a loop device
- mknod /dev/loop0 -m0660 b 7 0
- mknod /dev/loop1 -m0660 b 7 1
- mknod /dev/loop2 -m0660 b 7 2
- mknod /dev/loop3 -m0660 b 7 3
- mknod /dev/loop4 -m0660 b 7 4
- mknod /dev/loop5 -m0660 b 7 5
- mknod /dev/loop6 -m0660 b 7 6
- mknod /dev/loop7 -m0660 b 7 7
- mknod /dev/loop8 -m0660 b 7 8
- mknod /dev/loop9 -m0660 b 7 9
# Update pacman local database
- pacman -Sy
# Disable autodetect hook to avoid a failure when installing archiso
- sed -i 's/autodetect //' /etc/mkinitcpio.conf
# Install archiso and snis dependencies
- pacman -S --noconfirm archiso git gtkglext lua52 portaudio openscad sdl glew
# Add a non-root user to be able to use makepkg
- useradd -m -p "" -g users -G "adm,log,network,storage,wheel" makeuser
# Make sure this user can use sudo
- echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
# Avoid an error
- mkdir -p /home/makeuser/.local/share
script:
# Build the ISO
- sudo -u makeuser make
# Move it to the current folder to have a cleaner artifact path
- mv snislive/out/*.iso .
artifacts:
paths:
# Save the ISO in the artifacts
- snislive-*.iso
only:
- schedules
- triggers
- web
\ No newline at end of file