From 01916433b01eb53f6d5eb854f8bd42b95ab565d2 Mon Sep 17 00:00:00 2001 From: Janis Date: Sat, 2 May 2026 16:26:00 +0200 Subject: [PATCH] fix(ncs-promotion): restore Discord webhook notification configurations --- .../nowchess/ncs-promotion-template.yaml | 144 +++++++++--------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/kargo-projects/nowchess/ncs-promotion-template.yaml b/kargo-projects/nowchess/ncs-promotion-template.yaml index 6598d52..4e8fe18 100644 --- a/kargo-projects/nowchess/ncs-promotion-template.yaml +++ b/kargo-projects/nowchess/ncs-promotion-template.yaml @@ -79,75 +79,75 @@ spec: images: - repoURL: ${{ vars.imageRepoUrl }} tag: ${{ vars.imageTag }} -# - uses: http -# if: "${{ success() }}" -# as: notify-success -# config: -# url: ${{ vars.discordWebhook }} -# method: POST -# headers: -# - name: "Content-Type" -# value: "application/json" -# body: | -# ${{ quote({ -# "embeds": [ -# { -# "title": "✅ Promotion Succeeded", -# "description": "Component promoted successfully", -# "color": 3066993, -# "fields": [ -# { -# "name": "Component", -# "value": "${{ vars.component }}", -# "inline": true -# }, -# { -# "name": "Image Tag", -# "value": "${{ vars.imageTag }}", -# "inline": true -# }, -# { -# "name": "Stage", -# "value": "${{ ctx.stage }}", -# "inline": true -# } -# ] -# } -# ] -# }) }} -# - uses: http -# if: "${{ failure() }}" -# as: notify-failure -# config: -# url: ${{ vars.discordWebhook }} -# method: POST -# headers: -# - name: "Content-Type" -# value: "application/json" -# body: | -# ${{ quote({ -# "embeds": [ -# { -# "title": "❌ Promotion Failed", -# "description": "Component promotion failed", -# "color": 15158332, -# "fields": [ -# { -# "name": "Component", -# "value": "${{ vars.component }}", -# "inline": true -# }, -# { -# "name": "Image Tag", -# "value": "${{ vars.imageTag }}", -# "inline": true -# }, -# { -# "name": "Stage", -# "value": "${{ ctx.stage }}", -# "inline": true -# } -# ] -# } -# ] -# }) }} + - uses: http + if: "${{ success() }}" + as: notify-success + config: + url: ${{ vars.discordWebhook }} + method: POST + headers: + - name: "Content-Type" + value: "application/json" + body: | + ${{ quote({ + "embeds": [ + { + "title": "✅ Promotion Succeeded", + "description": "Component promoted successfully", + "color": 3066993, + "fields": [ + { + "name": "Component", + "value": vars.component, + "inline": true + }, + { + "name": "Image Tag", + "value": vars.imageTag, + "inline": true + }, + { + "name": "Stage", + "value": ctx.stage, + "inline": true + } + ] + } + ] + }) }} + - uses: http + if: "${{ failure() }}" + as: notify-failure + config: + url: ${{ vars.discordWebhook }} + method: POST + headers: + - name: "Content-Type" + value: "application/json" + body: | + ${{ quote({ + "embeds": [ + { + "title": "❌ Promotion Failed", + "description": "Component promotion failed", + "color": 15158332, + "fields": [ + { + "name": "Component", + "value": vars.component, + "inline": true + }, + { + "name": "Image Tag", + "value": vars.imageTag, + "inline": true + }, + { + "name": "Stage", + "value": ctx.stage, + "inline": true + } + ] + } + ] + }) }}