id's toegevoegd pt 2 + fix mattermost pipeline
All checks were successful
Docker Image CI / build-and-push (push) Successful in 1m11s
Docker Image CI / deploy (push) Successful in 33s

This commit is contained in:
2025-03-15 13:44:26 +01:00
parent d9829e1eef
commit 2d444b0300
7 changed files with 58 additions and 23 deletions

View File

@@ -25,15 +25,21 @@ jobs:
name: version
path: version.txt
- name: Notify Mattermost via Bot
env:
VERSION: ${{ VERSION }}
REPO: ${{ gitea.repository }}
BRANCH: ${{ gitea.ref }}
MATTERMOST_BOT_TOKEN: ${{ secrets.MATTERMOST_BOT_TOKEN }}
run: |
curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \
curl --fail -X POST -H "Authorization: Bearer $MATTERMOST_BOT_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
"message": "@all \n🚀 *Build gestart!* Een nieuwe build [${{VERSION}}-SNAPSHOT] is begonnen voor de repository *${{ gitea.repository }}* op branch *${{ gitea.ref }}*."
"message": "@all 🚀 *Build gestart!* Een nieuwe build ['"$VERSION"'-SNAPSHOT] is begonnen voor de repository *'"$REPO"'* op branch *'"$BRANCH"'*."
}' \
https://mattermost.melvanveen.nl/api/v4/posts
# Stap 3: Inloggen bij Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
@@ -94,11 +100,13 @@ jobs:
docker image prune -f
- name: Notify Mattermost via Bot
env:
VERSION: ${{ VERSION }}
run: |
curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \
-H 'Content-Type: application/json' \
-d '{
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
"message": "@all \n✅ *Build is geslaagd!* Er staat een nieuwe versie klaar op https://test-paypoint.melvanveen.nl"
"message": "@all ✅ *Build is geslaagd!* Versie '"$VERSION"'-SNAPSHOT staat klaar op https://test-paypoint.melvanveen.nl"
}' \
https://mattermost.melvanveen.nl/api/v4/posts