CI: main tag without prefix

Made-with: Cursor
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-12 04:12:02 +03:00
parent ef3797e00e
commit 587b0e3c2d
+3 -2
View File
@@ -8,7 +8,8 @@ steps:
- name: build-push - name: build-push
image: docker image: docker
commands: commands:
- docker build -f src/Dockerfile -t localhost:5000/annotations:${CI_COMMIT_BRANCH}-arm src/ - if [ "$CI_COMMIT_BRANCH" = "main" ]; then export TAG=arm; else export TAG=${CI_COMMIT_BRANCH}-arm; fi
- docker push localhost:5000/annotations:${CI_COMMIT_BRANCH}-arm - docker build -f src/Dockerfile -t localhost:5000/annotations:$TAG src/
- docker push localhost:5000/annotations:$TAG
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock