[AZ-203] Parameterize registry host via REGISTRY_HOST secret

Pipeline reads $REGISTRY_HOST from the Woodpecker global secret
'registry_host' instead of hardcoding 'localhost:5000'. The full
host:port lives in the secret, so Harbor migration (AZ-205) becomes
one secret edit rather than editing every submodule pipeline.

Made-with: Cursor
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-20 03:49:21 +03:00
parent 5b0e53fbdb
commit 9a3456a421
+5 -2
View File
@@ -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 -t localhost:5000/ui:$TAG .
- docker push localhost:5000/ui:$TAG
- docker build -f Dockerfile -t $REGISTRY_HOST/ui:$TAG .
- docker push $REGISTRY_HOST/ui:$TAG
volumes:
- /var/run/docker.sock:/var/run/docker.sock