mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 09:26:34 +00:00
Add support for multi-platform builds in Woodpecker CI configuration
- Introduced a matrix for building on both linux/arm64 and linux/amd64 platforms. - Updated image tags to include platform-specific identifiers for better versioning. - Enhanced the labels section to dynamically set the platform label based on the build matrix.
This commit is contained in:
+12
-2
@@ -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/autopilot
|
||||
tags:
|
||||
- "${CI_COMMIT_BRANCH}"
|
||||
- "${CI_COMMIT_SHA:0:8}"
|
||||
- "${CI_COMMIT_BRANCH}-${TAG}"
|
||||
- "${CI_COMMIT_SHA:0:8}-${TAG}"
|
||||
insecure: true
|
||||
|
||||
Reference in New Issue
Block a user