-
Notifications
You must be signed in to change notification settings - Fork 1.2k
38 lines (37 loc) · 1.12 KB
/
auto-dispatch.yaml
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
name: Build and Deploy (Dispatch)
on:
push:
branches:
- master
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@v2
- name: Build npm
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn
yarn run build
RepoAjobs:
runs-on: ubuntu-latest
needs: Build
steps:
- name: send dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DEVOPS_TOKEN }}
repository: ${{ secrets.dispatch_repo }}
event-type: gitops-${{ github.event.repository.name }}-${{ github.ref }}-${{ github.actor }}
client-payload: >-
{
"product": "platform",
"project": "external",
"type": "docker",
"repository": "${{ github.event.repository.name }}" ,
"repository_full": "${{ github.event.repository.full_name }}" ,
"github-sha": "${{ github.sha }}",
"github-actor": "${{ github.actor }}",
"github-ref": "${{ github.ref_name }}"
}