From 4cbcb6e491ee91f19beeee35979049a504f9e892 Mon Sep 17 00:00:00 2001 From: Oleksandr Bezdieniezhnykh Date: Sun, 12 Apr 2026 04:12:03 +0300 Subject: [PATCH] CI: main tag without prefix Made-with: Cursor --- .woodpecker/build-arm.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.woodpecker/build-arm.yml b/.woodpecker/build-arm.yml index cb9affa..471b5f7 100644 --- a/.woodpecker/build-arm.yml +++ b/.woodpecker/build-arm.yml @@ -8,7 +8,8 @@ steps: - name: build-push image: docker commands: - - docker build -f Dockerfile.jetson -t localhost:5000/detections:${CI_COMMIT_BRANCH}-arm . - - docker push localhost:5000/detections:${CI_COMMIT_BRANCH}-arm + - if [ "$CI_COMMIT_BRANCH" = "main" ]; then export TAG=arm; else export TAG=${CI_COMMIT_BRANCH}-arm; fi + - docker build -f Dockerfile.jetson -t localhost:5000/detections:$TAG . + - docker push localhost:5000/detections:$TAG volumes: - /var/run/docker.sock:/var/run/docker.sock