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 '/' '-')"
|
||||
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}"
|
||||
|
||||
Reference in New Issue
Block a user