fix(ncs-promotion): remove commented-out Discord webhook notification configurations

This commit is contained in:
2026-05-01 21:11:25 +02:00
parent 3f34b8b5c8
commit 2128b3437f
@@ -79,75 +79,75 @@ spec:
images: images:
- repoURL: ${{ vars.imageRepoUrl }} - repoURL: ${{ vars.imageRepoUrl }}
tag: ${{ vars.imageTag }} tag: ${{ vars.imageTag }}
- uses: http # - uses: http
if: "${{ success() }}" # if: "${{ success() }}"
as: notify-success # as: notify-success
config: # config:
url: ${{ vars.discordWebhook }} # url: ${{ vars.discordWebhook }}
method: POST # method: POST
headers: # headers:
- name: "Content-Type" # - name: "Content-Type"
value: "application/json" # value: "application/json"
body: | # body: |
${{ quote({ # ${{ quote({
"embeds": [ # "embeds": [
{ # {
"title": "✅ Promotion Succeeded", # "title": "✅ Promotion Succeeded",
"description": "Component promoted successfully", # "description": "Component promoted successfully",
"color": 3066993, # "color": 3066993,
"fields": [ # "fields": [
{ # {
"name": "Component", # "name": "Component",
"value": "${{ vars.component }}", # "value": "${{ vars.component }}",
"inline": true # "inline": true
}, # },
{ # {
"name": "Image Tag", # "name": "Image Tag",
"value": "${{ vars.imageTag }}", # "value": "${{ vars.imageTag }}",
"inline": true # "inline": true
}, # },
{ # {
"name": "Stage", # "name": "Stage",
"value": "${{ ctx.stage }}", # "value": "${{ ctx.stage }}",
"inline": true # "inline": true
} # }
] # ]
} # }
] # ]
}) }} # }) }}
- uses: http # - uses: http
if: "${{ failure() }}" # if: "${{ failure() }}"
as: notify-failure # as: notify-failure
config: # config:
url: ${{ vars.discordWebhook }} # url: ${{ vars.discordWebhook }}
method: POST # method: POST
headers: # headers:
- name: "Content-Type" # - name: "Content-Type"
value: "application/json" # value: "application/json"
body: | # body: |
${{ quote({ # ${{ quote({
"embeds": [ # "embeds": [
{ # {
"title": "❌ Promotion Failed", # "title": "❌ Promotion Failed",
"description": "Component promotion failed", # "description": "Component promotion failed",
"color": 15158332, # "color": 15158332,
"fields": [ # "fields": [
{ # {
"name": "Component", # "name": "Component",
"value": "${{ vars.component }}", # "value": "${{ vars.component }}",
"inline": true # "inline": true
}, # },
{ # {
"name": "Image Tag", # "name": "Image Tag",
"value": "${{ vars.imageTag }}", # "value": "${{ vars.imageTag }}",
"inline": true # "inline": true
}, # },
{ # {
"name": "Stage", # "name": "Stage",
"value": "${{ ctx.stage }}", # "value": "${{ ctx.stage }}",
"inline": true # "inline": true
} # }
] # ]
} # }
] # ]
}) }} # }) }}