2021-12-31 14:39:49 +01:00
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: 'archlinux:latest'
|
|
|
|
commands:
|
2021-12-31 14:48:32 +01:00
|
|
|
# Update packages
|
|
|
|
- pacman -Syu --needed --noconfirm base-devel sudo
|
|
|
|
# Create non-root user to perform build & switch to their home
|
|
|
|
- groupadd -g 1000 builder
|
|
|
|
- useradd -mg builder builder
|
|
|
|
- cd /home/builder
|
|
|
|
# Build the package
|
2021-12-31 14:49:21 +01:00
|
|
|
- sudo -u builder makepkg -s
|
2021-12-31 14:48:32 +01:00
|
|
|
# Publish the package
|
2021-12-31 14:39:49 +01:00
|
|
|
- 'curl -F "file=@$(ls *.pkg*)" -H "X-API-KEY: $API_KEY" https://pkgs.rustybever.be/api/publish'
|