generated from meshery/meshery-istio
-
Notifications
You must be signed in to change notification settings - Fork 33
46 lines (46 loc) · 1.44 KB
/
component-generator.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
name: Meshery App Mesh Pattern Components Generator
on:
push:
branches:
- 'master'
paths-ignore:
- 'docs/**'
schedule:
- cron: "0 0 * * *"
jobs:
GenerateComponents:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
with:
fetch-depth: 1
token: ${{ secrets.GH_ACCESS_TOKEN }}
ref: "master"
- name: Setup Go
uses: actions/setup-go@master
with:
go-version: 1.19
- name: Run adapter to create components
run: |
touch log.txt
mkdir -p ~/.meshery/bin
(FORCE_DYNAMIC_REG=true DEBUG=true go run main.go > log.txt 2>&1) &
end=$((SECONDS+300))
while [ $SECONDS -lt $end ]; do
if [ "$(cat log.txt | grep "Component Creation completed for version")" != "" ];then
echo "New components created"
break
fi
done
rm log.txt
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: templates/
commit_user_name: l5io
commit_user_email: ci@layer5.io
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
commit_options: "--signoff"
commit_message: "[Patterns] Pattern components generated from latest App mesh manifests"
branch: master