feat(ci): replace S3 upload with CI artifacts in compile-services

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-03-02 11:09:55 +01:00
parent 395a7c3501
commit f80c5bbf8a

View File

@@ -442,20 +442,11 @@ compile-services:
strip build-out/services/$bin
done
- ls -lh build-out/services/
# Upload stripped binaries to MinIO (in-cluster S3)
# Trust MinIO CA — rclone (Go) uses system CAs, not RCLONE_CA_CERT for S3.
# Container runs non-root, so merge system + MinIO CA into writable /tmp bundle.
- cp /etc/ssl/certs/ca-certificates.crt /tmp/ca-bundle.crt 2>/dev/null || true
- cat /etc/ssl/minio-ca/ca.crt >> /tmp/ca-bundle.crt 2>/dev/null || true
- export SSL_CERT_FILE=/tmp/ca-bundle.crt
- export RCLONE_S3_PROVIDER=Minio RCLONE_S3_ENDPOINT=https://minio.foxhunt.svc.cluster.local:9000 RCLONE_S3_REGION=us-east-1
- export RCLONE_S3_ACCESS_KEY_ID=$MINIO_ACCESS_KEY RCLONE_S3_SECRET_ACCESS_KEY=$MINIO_SECRET_KEY
- |
for bin in trading_service api_gateway broker_gateway_service ml_training_service backtesting_service trading_agent_service data_acquisition_service web-gateway; do
rclone copyto build-out/services/$bin :s3:foxhunt-binaries/latest/services/$bin
done
- rclone copy build-out/services/ :s3:foxhunt-binaries/archive/${CI_COMMIT_SHA}/services/
- echo "Service binaries uploaded to MinIO"
- echo "Service binaries ready as CI artifacts"
artifacts:
paths:
- build-out/services/
expire_in: 1 day
# --------------------------------------------------------------------------
# Stage 3a: Compile training binaries (CPU node, CUDA stubs from ci-builder image)