commit messages toegevoegd aan pipeline
Some checks failed
Docker Image CI / build-and-push (push) Successful in 53s
Docker Image CI / deploy (push) Failing after 23s

This commit is contained in:
2025-03-16 22:33:45 +01:00
parent 08ca500570
commit 33aa00a4db

View File

@@ -26,7 +26,6 @@ jobs:
path: version.txt path: version.txt
- name: Notify Mattermost via Bot - name: Notify Mattermost via Bot
env: env:
VERSION: ${{ env.VERSION }}
REPO: ${{ gitea.repository }} REPO: ${{ gitea.repository }}
BRANCH: ${{ gitea.ref }} BRANCH: ${{ gitea.ref }}
MATTERMOST_BOT_TOKEN: ${{ secrets.MATTERMOST_BOT_TOKEN }} MATTERMOST_BOT_TOKEN: ${{ secrets.MATTERMOST_BOT_TOKEN }}
@@ -35,7 +34,7 @@ jobs:
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d '{ -d '{
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy", "channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
"message": "@all 🚀 *Build gestart!* Een nieuwe build ['"$VERSION"'-SNAPSHOT] is begonnen voor de repository *'"$REPO"'* op branch *'"$BRANCH"'*." "message": "@all 🚀 *Build gestart!* Een nieuwe build is begonnen voor de repository *'"$REPO"'* op branch *'"$BRANCH"'*."
}' \ }' \
https://mattermost.melvanveen.nl/api/v4/posts https://mattermost.melvanveen.nl/api/v4/posts
@@ -103,10 +102,12 @@ jobs:
env: env:
VERSION: ${{ env.VERSION }} VERSION: ${{ env.VERSION }}
run: | run: |
COMMITS=$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"- %s")
curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \ curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d '{ -d '{
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy", "channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
"message": "@all ✅ *Build is geslaagd!* Versie '"$VERSION"'-SNAPSHOT staat klaar op https://test-paypoint.melvanveen.nl" "message": "@all ✅ *Build is geslaagd!* Versie '"$VERSION"'-SNAPSHOT staat klaar op https://test-paypoint.melvanveen.nl\n\n*Changelog:*\n'"${COMMITS}"'"
}' \ }' \
https://mattermost.melvanveen.nl/api/v4/posts https://mattermost.melvanveen.nl/api/v4/posts