Update Docker image tagging to use commit reference name instead of tag #5

This commit is contained in:
Marek Lesko
2025-07-28 10:15:09 +00:00
parent 6940ba1fc0
commit e77a275885

View File

@@ -73,7 +73,7 @@ docker-build:
- docker build -t centrum-api:latest -f Dockerfile .
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
- docker tag centrum-api:latest $CI_REGISTRY_IMAGE:latest
- docker tag centrum-api:latest $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
- docker tag centrum-api:latest $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
- docker push $CI_REGISTRY_IMAGE:latest
docker-deploy: