From 32756c7be3d4c7ef3308cc355f75ca4c91a69aff Mon Sep 17 00:00:00 2001 From: mahdi Date: Mon, 20 Jul 2026 19:47:19 +0330 Subject: [PATCH] fix: install curl in alpine image before sending notification --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e38dba3..a305fe1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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}" \ No newline at end of file