fix: install curl in alpine image before sending notification
This commit is contained in:
parent
55dc6d1a22
commit
32756c7be3
|
|
@ -23,6 +23,7 @@ deploy_application:
|
||||||
- docker pull nginxdemos/hello:plain-text
|
- docker pull nginxdemos/hello:plain-text
|
||||||
- docker compose -f ./stacks/hello-world/docker-compose.yml up -d
|
- docker compose -f ./stacks/hello-world/docker-compose.yml up -d
|
||||||
after_script:
|
after_script:
|
||||||
|
- apk add --no-cache curl # این خط ابزار curl را به سرعت نصب میکند
|
||||||
- echo "=== STARTING TELEGRAM NOTIFICATION ==="
|
- echo "=== STARTING TELEGRAM NOTIFICATION ==="
|
||||||
- echo "Target Chat ID is ${TELEGRAM_CHAT_ID}"
|
- 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}"
|
- 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}"
|
||||||
Loading…
Reference in New Issue