0.11.12 : Auto deploy and message to discord
This commit is contained in:
@@ -7,6 +7,8 @@ env:
|
|||||||
DOCKER_REGISTRY_URL: git.harmonylab.ovh
|
DOCKER_REGISTRY_URL: git.harmonylab.ovh
|
||||||
DOCKER_REGISTRY_ORG: harmony
|
DOCKER_REGISTRY_ORG: harmony
|
||||||
RELEASE_VERSION: 1.2.0
|
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:
|
jobs:
|
||||||
build_docker_images:
|
build_docker_images:
|
||||||
@@ -57,3 +59,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Remove the Docker image with latest tag
|
- name: Remove the Docker image with latest tag
|
||||||
run: docker rmi $DOCKER_REGISTRY_URL/$DOCKER_REGISTRY_ORG/$DOCKER_IMAGE_NAME:latest
|
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
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "harmony-back",
|
"name": "harmony-back",
|
||||||
"version": "0.11.11",
|
"version": "0.11.12",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A Strapi application",
|
"description": "A Strapi application",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"name": "Apache 2.0",
|
"name": "Apache 2.0",
|
||||||
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
|
"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": {
|
"x-strapi-config": {
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
|||||||
Reference in New Issue
Block a user