Update push-trigger.yml #57
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
name: Build data-archive | ||
on: | ||
release: | ||
types: [published] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
workflow_dispatch: | ||
inputs: | ||
message: | ||
description: 'Message for manually triggering' | ||
required: false | ||
default: 'Triggered for Updates' | ||
type: string | ||
push: | ||
branches: | ||
- master | ||
- 1.* | ||
- develop | ||
- release* | ||
- MOSIP* | ||
jobs: | ||
build-dockers: | ||
strategy: | ||
matrix: | ||
include: | ||
- SERVICE_LOCATION: 'data-archive' | ||
SERVICE_NAME: 'data-archive' | ||
fail-fast: false | ||
name: ${{ matrix.SERVICE_NAME }} | ||
uses: bn46/kattu/.github/workflows/docker-build.yml@develop | ||
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: | ||
# This job depends on the outcome of the build job. | ||
if: failure() # Only run when the build-dockers job fails | ||
needs: build-dockers | ||
uses: bn46/kattu/.github/workflows/reusable-slack-notification.yml@develop | ||
Check failure on line 45 in .github/workflows/push-trigger.yml GitHub Actions / .github/workflows/push-trigger.ymlInvalid workflow file
|
||
with: | ||
GITHUB_USER: ${{ github.actor }} | ||
REPOSITORY: ${{ github.repository }} | ||
PR_TITLE: ${{ github.event.pull_request.title || 'N/A' }} | ||
ACTION: ${{ github.event.action }} | ||
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 }} | ||
GENERAL_CHANNEL_ID: ${{ secrets.GENERAL_CHANNEL_ID }} |