ci(deploy): fix image cleanup and shorten notifications

This commit is contained in:
2026-07-09 15:58:10 +08:00
parent 48b74d1d62
commit ab63fe002f
2 changed files with 4 additions and 15 deletions
+2 -13
View File
@@ -28,10 +28,7 @@ if [ -z "$notify_url" ]; then
fi
deploy_env="${DEPLOY_ENV:-unknown}"
image_tag="${IMAGE_VERSION_TAG:-unknown}"
job_status="${ACTION_JOB_STATUS:-unknown}"
workflow_name="${GITHUB_WORKFLOW:-Docker Image}"
repository="${GITHUB_REPOSITORY:-cozsweet-frontend-nextjs}"
run_url=""
if [ -n "${GITHUB_SERVER_URL:-}" ] && [ -n "${GITHUB_REPOSITORY:-}" ] && [ -n "${GITHUB_RUN_ID:-}" ]; then
@@ -42,16 +39,8 @@ if [ -z "$run_url" ]; then
fi
export ACTION_NOTIFY_MESSAGE="$(cat <<EOF
Gitea workflow finished.
Workflow: $workflow_name
Repository: $repository
Branch: $branch_name
Environment: $deploy_env
Commit: $short_sha
Image: $image_tag
Status: $job_status
Run: $run_url
$job_status $deploy_env/$branch_name $short_sha
$run_url
EOF
)"