id's toegevoegd pt 2 + fix mattermost pipeline
This commit is contained in:
14
.github/workflows/deploy-docker-to-tst.yml
vendored
14
.github/workflows/deploy-docker-to-tst.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user