Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Feed notification #117

Merged
merged 15 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/container-build-push-2nd-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ on:
description: "The artifact path to extract the artifact into."
required: false
type: string
notification-channel:
description: "The name of the channel where the notification happens."
type: string
default: "pd2ndgendeployment"

secrets:
COSIGN_KEY_OPENSIGHT:
Expand Down Expand Up @@ -272,4 +276,5 @@ jobs:
uses: greenbone/workflows/.github/workflows/notify-mattermost-2nd-gen.yml@main
with:
status: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
channel: ${{ inputs.notification-channel }}
secrets: inherit
5 changes: 5 additions & 0 deletions .github/workflows/container-build-push-feed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ on:
description: "Is this the vts image?"
default: "false"
type: string
notification-channel:
description: "The name of the channel where the notification happens."
type: string
default: "pdfeeddeploymentnotification"

secrets:
COSIGN_KEY_OPENSIGHT:
Expand Down Expand Up @@ -207,4 +211,5 @@ jobs:
uses: greenbone/workflows/.github/workflows/notify-mattermost-2nd-gen.yml@main
with:
status: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
channel: ${{ inputs.notification-channel }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/helm-container-build-push-3rd-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
- building-service-chart
- building-product-chart
- building-product-compose
if: ${{ !cancelled() && startsWith(github.ref, 'refs/tags/v') && startsWith(inputs.notify, 'true') }}
if: ${{ !cancelled() && startsWith(inputs.notify, 'true') }}
uses: greenbone/workflows/.github/workflows/notify-mattermost-3rd-gen.yml@main
with:
status: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/notify-mattermost-2nd-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
description: "The monitored job, job status."
type: string
required: true
channel:
description: "The name of the channel where the notification happens."
type: string
default: pd2ndgendeployment
# Dependabot don't have this secrets and on PR's this secrets are not needed.
secrets:
MATTERMOST_WEBHOOK_URL:
Expand All @@ -33,7 +37,7 @@ jobs:
uses: greenbone/actions/mattermost-notify@v3
with:
url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
channel: "pd2ndgendeployment"
channel: ${{ inputs.channel }}
highlight: ${{ inputs.highlight }}
branch: ${{ github.ref_name }}
commit: ${{ inputs.commit }}
Expand Down