forked from rudderlabs/rudder-server
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.25 KB
/
dispatch-deploy-event-dev.yaml
File metadata and controls
43 lines (38 loc) · 1.25 KB
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
name: Dispatch deploy event
on: workflow_dispatch
permissions:
contents: read # Required for basic repository access
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Repository dispatch
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
with:
token: "${{ secrets.PAT }}"
repository: rudderlabs/rudder-devops
event-type: deploy-event
client-payload: |
{
"repo": "${{ github.repository }}",
"commit-sha": "${{ github.sha }}",
"images": {
"server": {
"tag": "${{ github.ref_name }}"
},
"gateway": {
"tag": "${{ github.ref_name }}"
},
"warehouse-master": {
"tag": "${{ github.ref_name }}"
},
"warehouse-slave": {
"tag": "${{ github.ref_name }}"
}
},
"value-paths": []
}