-
Notifications
You must be signed in to change notification settings - Fork 0
124 lines (102 loc) · 2.87 KB
/
staging.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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: Staging
on:
push:
branches:
- "master"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.6
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
- name: Registry login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
- name: Staging
run: make staging
helm:
runs-on: ubuntu-latest
steps:
- name: clone core
uses: actions/checkout@v3
with:
path: "core"
- name: clone conditions-text
uses: actions/checkout@v3
with:
path: "conditions-text"
repository: awakari/conditions-text
token: ${{ secrets.CLONE_PAT }}
- name: clone matches
uses: actions/checkout@v3
with:
path: "matches"
repository: awakari/matches
token: ${{ secrets.CLONE_PAT }}
- name: clone messages
uses: actions/checkout@v3
with:
path: "messages"
repository: awakari/messages
token: ${{ secrets.CLONE_PAT }}
- name: clone queue-nats
uses: actions/checkout@v3
with:
path: "queue-nats"
repository: awakari/queue-nats
token: ${{ secrets.CLONE_PAT }}
- name: clone reader
uses: actions/checkout@v3
with:
path: "reader"
repository: awakari/reader
token: ${{ secrets.CLONE_PAT }}
- name: clone subscriptions-proxy
uses: actions/checkout@v3
with:
path: "subscriptions-proxy"
repository: awakari/subscriptions-proxy
token: ${{ secrets.CLONE_PAT }}
- name: clone semaphore-nats
uses: actions/checkout@v3
with:
path: "semaphore-nats"
repository: awakari/semaphore-nats
token: ${{ secrets.CLONE_PAT }}
- name: clone writer
uses: actions/checkout@v3
with:
path: "writer"
repository: awakari/writer
token: ${{ secrets.CLONE_PAT }}
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.12.0
- name: Helm dependency update
continue-on-error: true
run: |
cd core
helm dependency update helm/core
- name: Helm package
run: |
cd core
mkdir helm/package
helm package helm/core --destination helm/package
cd helm/package
helm repo index .
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: core/helm/package