mirror of
https://github.com/azaion/detections.git
synced 2026-04-25 19:46:32 +00:00
Remove obsolete Woodpecker CI configuration for ARM builds
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# Manual-trigger only. Validation fixtures (sample videos + expected-detections
|
||||
# baseline) are not yet authored; running the e2e on push would produce red
|
||||
# builds until that data lands. Flip `event: [manual]` back to
|
||||
# `event: [push, pull_request, manual]` once validation fixtures are in place,
|
||||
# and add `depends_on: [01-test]` to 02-build-push.yml.
|
||||
#
|
||||
# Tracking: see plan "CI Auto Tests Epic", story S3b — blocked by e2e validation data.
|
||||
|
||||
when:
|
||||
event: [manual]
|
||||
branch: [dev, stage, main]
|
||||
|
||||
labels:
|
||||
platform: arm64
|
||||
|
||||
steps:
|
||||
- name: e2e
|
||||
image: docker:24
|
||||
environment:
|
||||
COMPOSE_PROJECT_NAME: detections-e2e
|
||||
commands:
|
||||
- cd e2e
|
||||
- mkdir -p results logs
|
||||
- docker compose -f docker-compose.test.yml --profile cpu up --build --abort-on-container-exit --exit-code-from e2e-runner
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
- name: e2e-report
|
||||
image: docker:24
|
||||
when:
|
||||
status: [success, failure]
|
||||
environment:
|
||||
COMPOSE_PROJECT_NAME: detections-e2e
|
||||
commands:
|
||||
- cd e2e
|
||||
- docker compose -f docker-compose.test.yml --profile cpu down -v || true
|
||||
- test -f results/report.csv && cat results/report.csv || echo "no report"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
@@ -1,9 +1,27 @@
|
||||
# No `depends_on: [01-test]` clause yet — the test workflow is manual-only
|
||||
# while validation fixtures are being authored (see 01-test.yml header comment).
|
||||
# When 01-test flips to push/pull_request triggers, add `depends_on: [01-test]`
|
||||
# here so builds are gated on a green test run.
|
||||
|
||||
when:
|
||||
event: [push, manual]
|
||||
branch: [dev, stage, main]
|
||||
|
||||
# Multi-arch matrix. detections is the only repo today with split per-arch
|
||||
# Dockerfiles (Jetson uses Dockerfile.jetson with TensorRT/CUDA on L4T;
|
||||
# amd64 uses the plain Dockerfile). Adding amd64 = uncommenting the second
|
||||
# entry once an amd64 agent and base image are in place.
|
||||
matrix:
|
||||
include:
|
||||
- PLATFORM: arm64
|
||||
TAG_SUFFIX: arm
|
||||
DOCKERFILE: Dockerfile.jetson
|
||||
# - PLATFORM: amd64
|
||||
# TAG_SUFFIX: amd
|
||||
# DOCKERFILE: Dockerfile
|
||||
|
||||
labels:
|
||||
platform: arm64
|
||||
platform: ${PLATFORM}
|
||||
|
||||
steps:
|
||||
- name: build-push
|
||||
@@ -17,10 +35,10 @@ steps:
|
||||
from_secret: registry_token
|
||||
commands:
|
||||
- echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin
|
||||
- export TAG=${CI_COMMIT_BRANCH}-arm
|
||||
- export TAG=${CI_COMMIT_BRANCH}-${TAG_SUFFIX}
|
||||
- export BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
- |
|
||||
docker build -f Dockerfile.jetson \
|
||||
docker build -f ${DOCKERFILE} \
|
||||
--build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA \
|
||||
--label org.opencontainers.image.revision=$CI_COMMIT_SHA \
|
||||
--label org.opencontainers.image.created=$BUILD_DATE \
|
||||
Reference in New Issue
Block a user