From 6ff3b518d89cbe6d0fc4569229307b9b82bd77e7 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Thu, 7 Apr 2022 21:15:30 +0200 Subject: [PATCH] Switched to multi-platform build --- .woodpecker.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4da8998..2b30980 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,15 +1,20 @@ +matrix: + PLATFORM: + - linux/amd64 + - linux/arm64 + branches: master -platform: linux/amd64 +platform: ${PLATFORM} when: event: push pipeline: build: - image: 'archlinux:latest' + image: 'menci/archlinuxarm:base-devel' commands: # Update packages - - pacman -Syu --needed --noconfirm base-devel + - pacman -Syu --noconfirm # Create non-root user to perform build & switch to their home - groupadd -g 1000 builder - useradd -mg builder builder @@ -23,6 +28,6 @@ pipeline: image: 'archlinux:latest' commands: # Publish the package - - 'curl -s -XPOST -H "X-API-KEY: $API_KEY" -T "$(ls *.pkg*)" https://arch.r8r.be/publish' + - 'curl -s -XPOST -H "X-API-KEY: $API_KEY" -T "$(ls *.pkg*)" https://arch.r8r.be/jjr/publish' secrets: - api_key