mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 09:16:33 +00:00
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
This commit is contained in:
+15
-3
@@ -2,14 +2,26 @@ when:
|
|||||||
branch: [stage, main]
|
branch: [stage, main]
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- PLATFORM: linux/arm64
|
||||||
|
TAG: arm
|
||||||
|
DOCKERFILE: Dockerfile.jetson
|
||||||
|
- PLATFORM: linux/amd64
|
||||||
|
TAG: amd64
|
||||||
|
DOCKERFILE: Dockerfile
|
||||||
|
|
||||||
|
labels:
|
||||||
|
platform: ${PLATFORM}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.jetson
|
dockerfile: ${DOCKERFILE}
|
||||||
context: .
|
context: .
|
||||||
repo: registry:5000/detections
|
repo: registry:5000/detections
|
||||||
tags:
|
tags:
|
||||||
- "${CI_COMMIT_BRANCH}"
|
- "${CI_COMMIT_BRANCH}-${TAG}"
|
||||||
- "${CI_COMMIT_SHA:0:8}"
|
- "${CI_COMMIT_SHA:0:8}-${TAG}"
|
||||||
insecure: true
|
insecure: true
|
||||||
|
|||||||
Reference in New Issue
Block a user