From 47be08bcf36e51e3abccdc9e500e457428b2b89b Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sun, 2 Jan 2022 08:41:00 +0100 Subject: [PATCH] Added CI config --- .gitignore | 1 - .woodpecker.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .woodpecker.yml diff --git a/.gitignore b/.gitignore index a271796..39cf456 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ PKGBUILD .SRCINFO .gitignore -* diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..7a82b2d --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,22 @@ +pipeline: + build: + image: 'archlinux:latest' + commands: + # Update packages + - pacman -Syu --needed --noconfirm base-devel + # Create non-root user to perform build & switch to their home + - groupadd -g 1000 builder + - useradd -mg builder builder + - chown -R builder:builder "$PWD" + - "echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" + - su builder + # Build the package + - MAKEFLAGS="-j$(nproc)" makepkg -s --noconfirm --needed + + publish: + image: 'archlinux:latest' + commands: + # Publish the package + - 'curl -F "file=@$(ls *.pkg*)" -H "X-API-KEY: $API_KEY" https://pkgs.rustybever.be/api/publish' + secrets: + - api_key