mirror of
https://github.com/azaion/detections.git
synced 2026-04-23 02:46:31 +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]
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user