jjr-joplin/.woodpecker.yml

21 lines
660 B
YAML
Raw Normal View History

2021-12-31 14:39:49 +01:00
pipeline:
build:
image: 'archlinux:latest'
commands:
2021-12-31 14:48:32 +01:00
# Update packages
2021-12-31 14:51:28 +01:00
- pacman -Syu --needed --noconfirm base-devel
2021-12-31 14:48:32 +01:00
# Create non-root user to perform build & switch to their home
- groupadd -g 1000 builder
- useradd -mg builder builder
2021-12-31 14:50:18 +01:00
- chown -R builder:builder "$PWD"
2021-12-31 14:56:12 +01:00
- "echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
2021-12-31 14:51:28 +01:00
- su builder
2021-12-31 14:48:32 +01:00
# Build the package
2021-12-31 15:06:22 +01:00
- yes | makepkg -s --noconfirm --needed
publish:
image: 'archlinux:latest'
commands:
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'