fix(ncs-promotion): restore Discord webhook notification configurations
This commit is contained in:
@@ -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
|
||||||
# }
|
}
|
||||||
# ]
|
]
|
||||||
# }
|
}
|
||||||
# ]
|
]
|
||||||
# }) }}
|
}) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user