Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Deploy
  3. Deploy notifications

Deploy notifications

Hear about successful and failed deploys.

Deploy

Know about every deploy, success or failure, without watching logs. The simplest way is the server itself: it notifies for every trigger, webhook deploys included.

From the server (recommended)#

bash
cipi notification add slack ops --url=https://hooks.slack.com/services/…
cipi notification add telegram team --token=<bot-token> --chat-id=<chat-id>
cipi notification test
EventSent when
deploy_successAfter the post-deploy health check passes
deploy_failThe deploy failed; the live release is unchanged
deploy_rollbackA rollback ran (manual or automatic)

Messages include app, branch, release, commit and author, duration and health verdict. Channels: email (SMTP, Resend, SES), Slack, Discord, Mattermost, Google Chat, Telegram, ntfy, Pushover, signed webhook. See Notifications.

From CI#

When the message should come from the pipeline (with the CI run link), add a step after cipi deploy:

yaml
# GitHub Actions, after the deploy step
      - name: Notify Slack
        if: always()
        run: |
          STATUS=${{ job.status == 'success' && '✅ deployed' || '❌ FAILED, rolled back' }}
          curl -s -X POST "${{ secrets.SLACK_WEBHOOK_URL }}" -H 'Content-Type: application/json' \
            -d "{\"text\":\"*myapp* $STATUS · ${{ github.ref_name }} by ${{ github.actor }}\"}"
yaml
# GitLab CI
deploy:
  script:
    - ssh cipi@$SERVER_HOST "sudo cipi deploy myapp" && R="✅ deployed" || R="❌ FAILED"
    - curl -s "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" -d chat_id="$TELEGRAM_CHAT_ID" -d text="myapp $R on $CI_COMMIT_REF_NAME"
    - '[ "$R" = "✅ deployed" ] || (ssh cipi@$SERVER_HOST "sudo cipi deploy myapp --rollback"; exit 1)'

Telegram chat ID: add the bot to the group, open https://api.telegram.org/bot<TOKEN>/getUpdates and read chat.id.