From 0f01e5a7c7cdc9fcfa453dc873b70245c9c5288f Mon Sep 17 00:00:00 2001 From: Oleksandr Bezdieniezhnykh Date: Thu, 9 Apr 2026 13:28:45 +0300 Subject: [PATCH] Add multi-platform support in Woodpecker CI configuration Introduced a matrix for building on both linux/arm64 and linux/amd64 platforms. Updated the tagging format to include platform-specific tags for better image management. --- .woodpecker.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8c9fcdb..4d2440d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,6 +2,16 @@ when: branch: [stage, main] event: push +matrix: + include: + - PLATFORM: linux/arm64 + TAG: arm + - PLATFORM: linux/amd64 + TAG: amd64 + +labels: + platform: ${PLATFORM} + steps: - name: build-and-push image: plugins/docker @@ -10,6 +20,6 @@ steps: context: . repo: registry:5000/admin tags: - - "${CI_COMMIT_BRANCH}" - - "${CI_COMMIT_SHA:0:8}" + - "${CI_COMMIT_BRANCH}-${TAG}" + - "${CI_COMMIT_SHA:0:8}-${TAG}" insecure: true