generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Reverted everything to using notifications inline w/ workflow (#955
- Loading branch information
Showing
2 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,20 @@ jobs: | |
target: ${{ needs.vars.outputs.pr }} | ||
tags: test #Promote images AFTER successful deploy | ||
|
||
notify-teams-test: | ||
name: Notify Teams - Test | ||
needs: [deploys-test, vars] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: MS Teams Notifications | ||
uses: dchourasia/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
webhook-uri: ${{ vars.MS_TEAMS_WEBHOOK_URI }} | ||
custom-facts: | | ||
- name: Notify QA Team | ||
value: "Successful Deploy of ${{ needs.vars.outputs.pr }} to TEST - cc QA TEAM" | ||
deploys-prod: | ||
name: Deploys (prod) | ||
needs: [promote-images-test, vars] | ||
|
@@ -75,6 +89,20 @@ jobs: | |
vault_role: prod | ||
vault_zone: prod | ||
|
||
notify-teams-prod: | ||
name: Notify Teams - Prod | ||
needs: [deploys-prod, vars] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: MS Teams Notifications | ||
uses: dchourasia/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
webhook-uri: ${{ vars.MS_TEAMS_WEBHOOK_URI }} | ||
custom-facts: | | ||
- name: Notify Production Team | ||
value: "Successful Deploy of ${{ needs.vars.outputs.pr }} to PROD" | ||
promote-images-prod: | ||
name: Promote Images - Prod | ||
needs: [deploys-prod, vars] | ||
|
@@ -167,6 +195,14 @@ jobs: | |
release_name: Release ${{ needs.GitVersion.outputs.fullSemVer }} | ||
draft: false | ||
prerelease: false | ||
- name: MS Teams Notifications | ||
uses: dchourasia/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
webhook-uri: ${{ vars.MS_TEAMS_WEBHOOK_URI }} | ||
custom-facts: | | ||
- name: Notify Teams | ||
value: "Release ${{ needs.GitVersion.outputs.fullSemVer }} Created." | ||
promote-images-release: | ||
name: Tag images with Release Version | ||
|
This file was deleted.
Oops, something went wrong.