ci: add slack notfications

This sends a message to a slack channel if a scheduled pipeline is
ran and reports either failure or success.
This commit is contained in:
Jakub Rusz 2021-07-09 13:40:34 +02:00 committed by Alexander Todorov
parent 2b99e9e894
commit 0b962c9185
3 changed files with 32 additions and 1 deletions

View file

@ -8,7 +8,7 @@ COMPOSE_ID=$(cat COMPOSE_ID)
COMPOSE_URL="${COMPOSE_URL:-http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/$COMPOSE_ID}"
# in case COMPOSE_URL was defined from the outside refresh COMPOSE_ID file,
# used for telegram messages in case of success/failure
# used for slack messages in case of success/failure
curl -L "$COMPOSE_URL/COMPOSE_ID" > COMPOSE_ID
# Make sure the compose URL really exists