1
0
mirror of https://github.com/pravets/oscript-images.git synced 2025-11-29 22:58:10 +02:00

fix: исправлено форматирование semver тега в скрипте сборки

This commit is contained in:
Iosif Pravets
2025-07-24 10:45:22 +00:00
committed by GitHub
parent b8a8c50476
commit 9fd13a0877

View File

@@ -42,6 +42,7 @@ if ./tests/test-oscript.sh; then
if ! [[ "${oscript_version}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && ! [[ "${container_version}" =~ rc ]]; then
semver_tag=$(echo "${container_version}" | awk -F. '{print $1"."$2"."$3}')
semver_tag="${semver_tag//+/_}"
if [[ -n "${semver_tag}" ]]; then
docker tag "${DOCKER_REGISTRY_URL}/${DOCKER_LOGIN}/oscript:${oscript_version}" "${DOCKER_REGISTRY_URL}/${DOCKER_LOGIN}/oscript:${semver_tag}"
docker push "${DOCKER_REGISTRY_URL}/${DOCKER_LOGIN}/oscript:${semver_tag}"