From 1dff909e740135a61650895e0ff1c5e7acda5b6b Mon Sep 17 00:00:00 2001 From: Roman Meshko Date: Sun, 7 Jun 2026 13:47:18 +0300 Subject: [PATCH] Fixed pipeline --- e2e/scripts/publish_jetson_engine.sh | 4 +++- e2e/scripts/pull_jetson_engine.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/e2e/scripts/publish_jetson_engine.sh b/e2e/scripts/publish_jetson_engine.sh index 8b41a64..1fc64a5 100644 --- a/e2e/scripts/publish_jetson_engine.sh +++ b/e2e/scripts/publish_jetson_engine.sh @@ -5,7 +5,9 @@ COMPOSE="${COMPOSE:-docker compose -f docker-compose.test.yml --profile jetson}" REGISTRY_HOST="${REGISTRY_HOST:?REGISTRY_HOST is required}" ENGINE_REPOSITORY="${JETSON_ENGINE_REPOSITORY:-$REGISTRY_HOST/azaion/detections-jetson-engine}" BRANCH="${CI_COMMIT_BRANCH:-local}" -ENGINE_TAG="${JETSON_ENGINE_TAG:-$(printf '%s' "$BRANCH" | tr -c 'A-Za-z0-9_.-' '-')}" +default_tag="$(printf '%s' "$BRANCH" | sed 's#^refs/heads/##; s#^refs/tags/##; s#[^A-Za-z0-9_.-]#-#g; s#^-*##; s#-*$##')" +default_tag="${default_tag:-local}" +ENGINE_TAG="${JETSON_ENGINE_TAG:-$default_tag}" OUT_DIR="${JETSON_ENGINE_OUT_DIR:-results/jetson-engine}" mkdir -p "$OUT_DIR/models" diff --git a/e2e/scripts/pull_jetson_engine.sh b/e2e/scripts/pull_jetson_engine.sh index 43673ef..f525439 100644 --- a/e2e/scripts/pull_jetson_engine.sh +++ b/e2e/scripts/pull_jetson_engine.sh @@ -8,7 +8,9 @@ fi ENGINE_REPOSITORY="${JETSON_ENGINE_REPOSITORY:-$REGISTRY_HOST/azaion/detections-jetson-engine}" BRANCH="${CI_COMMIT_BRANCH:-local}" -ENGINE_TAG="${JETSON_ENGINE_TAG:-$(printf '%s' "$BRANCH" | tr -c 'A-Za-z0-9_.-' '-')}" +default_tag="$(printf '%s' "$BRANCH" | sed 's#^refs/heads/##; s#^refs/tags/##; s#[^A-Za-z0-9_.-]#-#g; s#^-*##; s#-*$##')" +default_tag="${default_tag:-local}" +ENGINE_TAG="${JETSON_ENGINE_TAG:-$default_tag}" TARGET_DIR="${JETSON_ENGINE_TARGET_DIR:-fixtures/models}" image="$ENGINE_REPOSITORY:$ENGINE_TAG"