Refactor tag generation in docker-publish workflow for improved readability
Publish telemt-bot Docker image / build-and-push (push) Failing after 1m3s
Publish telemt-bot Docker image / build-and-push (push) Failing after 1m3s
This commit is contained in:
@@ -53,12 +53,10 @@ jobs:
|
|||||||
SAFE_REF="$(echo "${BRANCH_OR_TAG}" | tr '/' '-')"
|
SAFE_REF="$(echo "${BRANCH_OR_TAG}" | tr '/' '-')"
|
||||||
SHORT_SHA="$(echo "${SHA}" | cut -c1-12)"
|
SHORT_SHA="$(echo "${SHA}" | cut -c1-12)"
|
||||||
|
|
||||||
TAGS=$(cat <<EOF
|
TAGS="$(printf '%s\n%s\n%s\n' \
|
||||||
${IMAGE}:latest
|
"${IMAGE}:latest" \
|
||||||
${IMAGE}:${SAFE_REF}
|
"${IMAGE}:${SAFE_REF}" \
|
||||||
${IMAGE}:sha-${SHORT_SHA}
|
"${IMAGE}:sha-${SHORT_SHA}")"
|
||||||
EOF
|
|
||||||
)
|
|
||||||
|
|
||||||
echo "tags<<EOF" >> "${GITHUB_OUTPUT}"
|
echo "tags<<EOF" >> "${GITHUB_OUTPUT}"
|
||||||
echo "${TAGS}" >> "${GITHUB_OUTPUT}"
|
echo "${TAGS}" >> "${GITHUB_OUTPUT}"
|
||||||
|
|||||||
Reference in New Issue
Block a user