#!/bin/bash

curl --insecure -X POST \
  -H "Content-type: application/json" \
  --data '{
    "alias": "CI/CD GitLab",
    "text": "*Se ha producido un error desplegando el Front de RDBar en el entorno DEV03*",
    "attachments": [
      {
        "color": "#e53935",
        "fields": [
          {
            "title": "Realdooh (DEV03)",
            "value": "[Abrir entorno](http://dev03.altabox.net/realdooh/#/login)",
            "short": true
          }
        ],
        "thumb_url": "https://altabox.realdooh.com/rdcontents/realdoohapps/warning.png",
        "text": "Entorno de pruebas de *Realdooh Netflix*"
      }
    ]
  }' \
  https://rocket.altabox.net/hooks/699859d7a7cedc8b085848ca/855h8xymhMip4HujpRcHD4qQeGMLz238kLaGoz62jocDybix
