Skip to content

Commit

Permalink
Merge pull request #228 from gisaia/feat/chat_on_release
Browse files Browse the repository at this point in the history
add send chat message on release
  • Loading branch information
sylvaingaudan authored Jan 13, 2025
2 parents 006c815 + 19e90d9 commit 4a76831
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ build_and_publish_docker (){
docker push gisaia/${IMAGE}:${VERSION}
}

send_chat_message(){
MESSAGE=$1
if [ -z "$GOOGLE_CHAT_RELEASE_CHANEL" ] ; then
echo "Environement variable GOOGLE_CHAT_RELEASE_CHANEL is not definied ... skipping message publishing"
else
DATA='{"text":"'${MESSAGE}'"}'
echo $DATA
curl -X POST --header "Content-Type:application/json" $GOOGLE_CHAT_RELEASE_CHANEL -d "${DATA}"
fi
}

#--------------- FAM ----------------

build_and_publish_docker fam
Expand Down Expand Up @@ -64,3 +75,4 @@ git push origin
git tag -a ${VERSION} -m "ARLAS Item Registration Services Model ${VERSION}"
git push origin ${VERSION}

send_chat_message "Release of AIAS, version ${VERSION}"

0 comments on commit 4a76831

Please sign in to comment.