-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rajpal Chauhan <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
19 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 |
---|---|---|
|
@@ -14,14 +14,11 @@ inputs: | |
description: The name of the image in the GHCR to be deployed. | ||
required: true | ||
image_digest: | ||
description: The digest of the image to be deployed. Identifies the unique image tag in the GHCR. | ||
description: The digest of the image to be deployed. Identifies the unique image tag in the GHCR. | ||
required: true | ||
openshift_image_name: | ||
description: The name of the image to use when pushing to OpenShift. | ||
required: true | ||
service: | ||
description: The name of images used | ||
required: true | ||
|
||
# OpenShift parameters | ||
openshift_server_url: | ||
|
@@ -37,10 +34,10 @@ inputs: | |
description: The token used to authenticate with the OpenShift server. | ||
required: true | ||
|
||
# rocket.chat notification parameters | ||
# rocketchat_webhook: | ||
# description: The URL to use for posting notifications to rocket.chat. | ||
# required: true | ||
rocket.chat notification parameters | ||
rocketchat_webhook: | ||
description: The URL to use for posting notifications to rocket.chat. | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
|
@@ -87,14 +84,14 @@ runs: | |
echo starting rollout in ${{ inputs.namespace }} | ||
oc -n ${{ inputs.namespace }} rollout status dc/${{ inputs.deployment_configuration }} --watch | ||
# - name: Rocket.Chat Notification | ||
# uses: RocketChat/[email protected] | ||
# if: always() | ||
# with: | ||
# type: ${{ job.status }} | ||
# job_name: '*Deployment to ${{ inputs.environment }}*' | ||
# mention: 'here' | ||
# mention_if: 'failure' | ||
# channel: '#test-gha' | ||
# url: ${{ inputs.rocketchat_webhook }} | ||
# commit: true | ||
- name: Rocket.Chat Notification | ||
uses: RocketChat/[email protected] | ||
if: always() | ||
with: | ||
type: ${{ job.status }} | ||
job_name: '*Deployment to ${{ inputs.environment }}*' | ||
mention: 'here' | ||
mention_if: 'failure' | ||
channel: '#ditp-gha-notifications' | ||
url: ${{ inputs.rocketchat_webhook }} | ||
commit: true |
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