mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 07:06:32 +00:00
d3a2300669
- 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
28 lines
521 B
YAML
28 lines
521 B
YAML
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}
|
|
context: .
|
|
repo: registry:5000/detections
|
|
tags:
|
|
- "${CI_COMMIT_BRANCH}-${TAG}"
|
|
- "${CI_COMMIT_SHA:0:8}-${TAG}"
|
|
insecure: true
|