jjr-joplin/.woodpecker.yml

16 lines
512 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:51:28 +01:00
- su builder
2021-12-31 14:48:32 +01:00
# Build the package
2021-12-31 14:51:28 +01:00
- 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'