fix: install curl in alpine image before sending notification

This commit is contained in:
mahdi 2026-07-20 19:47:19 +03:30
parent 55dc6d1a22
commit 32756c7be3
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ deploy_application:
- docker pull nginxdemos/hello:plain-text
- docker compose -f ./stacks/hello-world/docker-compose.yml up -d
after_script:
- apk add --no-cache curl # این خط ابزار curl را به سرعت نصب می‌کند
- echo "=== STARTING TELEGRAM NOTIFICATION ==="
- echo "Target Chat ID is ${TELEGRAM_CHAT_ID}"
- curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" -d "chat_id=${TELEGRAM_CHAT_ID}" -d "parse_mode=Markdown" -d "text=🚀 *Deployment Succeeded!*%0A*Project:* ${CI_PROJECT_NAME}%0A*Commit:* ${CI_COMMIT_TITLE}"