Skip to content

Commit

Permalink
Update push-trigger.yml
Browse files Browse the repository at this point in the history
Signed-off-by: bn46 <[email protected]>
  • Loading branch information
bn46 authored Oct 21, 2024
1 parent e3c64ba commit cbef2ac
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,30 @@ jobs:
with:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
secrets:
DEV_NAMESPACE_DOCKER_HUB: ${{ secrets.DEV_NAMESPACE_DOCKER_HUB }}
ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }}
RELEASE_DOCKER_HUB: ${{ secrets.RELEASE_DOCKER_HUB }}

notify-slack-on-failure:
if: failure()
needs: build-dockers
uses: bn46org/kattu/.github/workflows/slack-notification.yml@develop
with:
GITHUB_USER: ${{ github.actor }}
REPOSITORY: ${{ github.repository }}
PR_TITLE: ${{ github.event.pull_request.title || 'N/A' }}
ACTION: ${{ github.event.action || 'N/A' }}
PR_URL: ${{ github.event.pull_request.html_url || github.event.release.html_url || 'N/A' }}
secrets:
DEV_NAMESPACE_DOCKER_HUB: ${{ secrets.DEV_NAMESPACE_DOCKER_HUB }}
ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }}
RELEASE_DOCKER_HUB: ${{ secrets.RELEASE_DOCKER_HUB }}
GPG_USER_MAP_PASSPHRASE: ${{ secrets.GPG_USER_MAP_PASSPHRASE }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL_ID: ${{ secrets.GENERAL_CHANNEL_ID }}

# notify-slack-on-failure:
# if: failure()
# needs: build-dockers
# uses: bn46org/kattu/.github/workflows/slack-notification.yml@develop
# with:
# GITHUB_USER: ${{ github.actor }}
# REPOSITORY: ${{ github.repository }}
# PR_TITLE: ${{ github.event.pull_request.title || 'N/A' }}
# ACTION: ${{ github.event.action || 'N/A' }}
# PR_URL: ${{ github.event.pull_request.html_url || github.event.release.html_url || 'N/A' }}
# secrets:
# GPG_USER_MAP_PASSPHRASE: ${{ secrets.GPG_USER_MAP_PASSPHRASE }}
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
# SLACK_CHANNEL_ID: ${{ secrets.GENERAL_CHANNEL_ID }}

0 comments on commit cbef2ac

Please sign in to comment.