From d3a23006691dc2c7d16a663e5af589d1e92e5c84 Mon Sep 17 00:00:00 2001 From: Oleksandr Bezdieniezhnykh Date: Thu, 9 Apr 2026 13:27:49 +0300 Subject: [PATCH] Enhance Woodpecker CI configuration for multi-platform builds - Introduced a matrix configuration to support building for both ARM64 and AMD64 platforms. - Updated the Dockerfile reference to be dynamic based on the selected platform. - Modified tag formatting for Docker images to include platform-specific tags, improving clarity in versioning. Made-with: Cursor --- .woodpecker.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 7a55bf2..98e0c3a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,14 +2,26 @@ when: branch: [stage, main] event: push +matrix: + include: + - PLATFORM: linux/arm64 + TAG: arm + DOCKERFILE: Dockerfile.jetson + - PLATFORM: linux/amd64 + TAG: amd64 + DOCKERFILE: Dockerfile + +labels: + platform: ${PLATFORM} + steps: - name: build-and-push image: plugins/docker settings: - dockerfile: Dockerfile.jetson + dockerfile: ${DOCKERFILE} context: . repo: registry:5000/detections tags: - - "${CI_COMMIT_BRANCH}" - - "${CI_COMMIT_SHA:0:8}" + - "${CI_COMMIT_BRANCH}-${TAG}" + - "${CI_COMMIT_SHA:0:8}-${TAG}" insecure: true