-
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.
Ops 3221 send rc message on ref prod deployments (#276)
Ops 3221 send rc message on ref prod deployments
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 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 |
---|---|---|
|
@@ -26,6 +26,8 @@ on: | |
required: true | ||
KUBECONFIG: | ||
required: true | ||
RC_WEBHOOK: | ||
required: true | ||
|
||
jobs: | ||
set_versions: | ||
|
@@ -138,4 +140,13 @@ jobs: | |
- working-directory: ${{github.workspace }}/ansible/roles/sys/files | ||
run: | | ||
rm -rf /config | ||
- name: Send Notification to Rocket Chat | ||
uses: RocketChat/[email protected] | ||
if: always() && contains(inputs.host_name, 'ref') || contains(inputs.host_name, 'prod') | ||
with: | ||
type: ${{ job.status }} | ||
job_name: 'Rollout of ${{ inputs.host_name }} triggered by ${{ github.actor }}:' | ||
url: ${{ secrets.RC_WEBHOOK }} | ||
channel: '#release' | ||
username: Autodeployment Info | ||
|
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