Refactor tag generation in docker-publish workflow for improved readability
Publish telemt-bot Docker image / build-and-push (push) Failing after 1m3s

This commit is contained in:
Denozordec
2026-03-09 16:10:07 +07:00
parent 29239ffe04
commit 4b54cc4544
+4 -6
View File
@@ -53,12 +53,10 @@ jobs:
SAFE_REF="$(echo "${BRANCH_OR_TAG}" | tr '/' '-')"
SHORT_SHA="$(echo "${SHA}" | cut -c1-12)"
TAGS=$(cat <<EOF
${IMAGE}:latest
${IMAGE}:${SAFE_REF}
${IMAGE}:sha-${SHORT_SHA}
EOF
)
TAGS="$(printf '%s\n%s\n%s\n' \
"${IMAGE}:latest" \
"${IMAGE}:${SAFE_REF}" \
"${IMAGE}:sha-${SHORT_SHA}")"
echo "tags<<EOF" >> "${GITHUB_OUTPUT}"
echo "${TAGS}" >> "${GITHUB_OUTPUT}"