CI: main tag without prefix

Made-with: Cursor
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-12 04:12:07 +03:00
parent 08250f48ed
commit 991ecfd732
+3 -2
View File
@@ -8,7 +8,8 @@ steps:
- name: build-push
image: docker
commands:
- docker build -f Dockerfile -t localhost:5000/ui:${CI_COMMIT_BRANCH}-arm .
- docker push localhost:5000/ui:${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 -t localhost:5000/ui:$TAG .
- docker push localhost:5000/ui:$TAG
volumes:
- /var/run/docker.sock:/var/run/docker.sock