0.11.12 : Auto deploy and message to discord

This commit is contained in:
2025-10-30 00:50:20 +01:00
parent 6c9cf82920
commit 00b12832a1
3 changed files with 23 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ env:
DOCKER_REGISTRY_URL: git.harmonylab.ovh
DOCKER_REGISTRY_ORG: harmony
RELEASE_VERSION: 1.2.0
DOCKPLOY_WEBHOOK_URL: http://192.168.0.220:3000/api/deploy/DxPrQ9JtATe40vH4N35KB
DISCORD_WEBHOOK_URL: https://discord.com/api/webhooks/1433240422901088339/GAvL79ESBRabkB6rvxN2DsWI74KJ_Szgp9W2_PycPIY113rMCT_9LvIv-iTLCMD9W9qH
jobs:
build_docker_images:
@@ -57,3 +59,22 @@ jobs:
- name: Remove the Docker image with latest tag
run: docker rmi $DOCKER_REGISTRY_URL/$DOCKER_REGISTRY_ORG/$DOCKER_IMAGE_NAME:latest
- name: Trigger Dockploy deployment
run: curl -fsSL $DOCKPLOY_WEBHOOK_URL
- name: Notify success
if: success()
run: |
curl -X POST \
-H "Content-Type: application/json" \
-d '{"content": "✅ Déploiement réussi pour *backend* !"}' \
$DISCORD_WEBHOOK_URL
- name: Notify failure
if: failure()
run: |
curl -X POST \
-H "Content-Type: application/json" \
-d '{"content": "❌ Échec du déploiement backend."}' \
$DISCORD_WEBHOOK_URL

View File

@@ -1,6 +1,6 @@
{
"name": "harmony-back",
"version": "0.11.11",
"version": "0.11.12",
"private": true,
"description": "A Strapi application",
"scripts": {

View File

@@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2025-10-29T23:24:08.569Z"
"x-generation-date": "2025-10-29T23:50:11.045Z"
},
"x-strapi-config": {
"plugins": [