diff --git a/.woodpecker/build-arm.yml b/.woodpecker/build-arm.yml index 1db5d2c..2eb28c2 100644 --- a/.woodpecker/build-arm.yml +++ b/.woodpecker/build-arm.yml @@ -8,9 +8,12 @@ labels: steps: - name: build-push image: docker + environment: + REGISTRY_HOST: + from_secret: registry_host commands: - 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 + - docker build -f Dockerfile.jetson -t $REGISTRY_HOST/detections:$TAG . + - docker push $REGISTRY_HOST/detections:$TAG volumes: - /var/run/docker.sock:/var/run/docker.sock