forked from mosip/data-archive
-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (64 loc) · 2.61 KB
/
push-trigger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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: bn46org/kattu/.github/workflows/docker-build.yml@develop
with:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
GITHUB_USER: ${{ github.actor }}
WORKFLOW: ${{ github.workflow }}
#PR_TITLE: ${{ github.event.pull_request.title || 'N/A' }}
ACTION: ${{ github.event.action || 'N/A' }}
PR_URL: "<${{ github.event.pull_request.html_url || 'N/A' }}|PR #${{ github.event.pull_request.number }}>"
COMMIT: "<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|Commit>"
REPO: ${{ github.repository }}
JOB_URL: "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Job Run>"
#JOB_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
MESSAGE: "<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.event.head_commit.message || github.event.pull_request.title }}>"
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 }}