Skip to content

Commit 38aaf05

Browse files
committed
A sample github action added to readme.md
Signed-off-by: sayantan1413 <[email protected]>
1 parent dc9cbfa commit 38aaf05

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@ Incorporate Service Mesh Patterns into your GitHub workflows using Meshery's CLI
44

55
<div>&nbsp;</div>
66

7+
## Sample pattern action configuration
8+
9+
```yaml
10+
name: Mesheryctl Pattern Action
11+
on:
12+
push:
13+
branches:
14+
- 'master'
15+
# if manually triggering, provide a provider token yourself
16+
workflow_dispatch:
17+
inputs:
18+
provider_token:
19+
description: "Meshery auth token"
20+
required: true
21+
22+
jobs:
23+
mesheryctl-pattern-action:
24+
name: Mesheryctl Pattern Actions
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: mesheryctl pattern action
28+
uses: layer5io/mesheryctl-service-mesh-patterns-action@master
29+
with:
30+
provider_token: ${{ github.event.inputs.provider_token }}
31+
platform: docker
32+
url: https://raw.githubusercontent.com/service-mesh-patterns/service-mesh-patterns/master/samples/IstioFilterPattern.yaml
33+
```
34+
735
## Join the service mesh community!
836
937
<a name="contributing"></a><a name="community"></a>

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ inputs:
77
service_mesh:
88
# used for provisioning appropriate meshery-adatper
99
description: "Service mesh to use. e.g: osm, istio etc"
10+
default: istio
1011
required: true
1112
platform:
1213
description: "Platform to deploy meshery on. Possible values: docker, kubernetes"
1314
default: docker
1415
url:
1516
description: "A raw Github URL for the patterns to be deployed"
1617
default: "https://raw.githubusercontent.com/service-mesh-patterns/service-mesh-patterns/master/samples/IstioFilterPattern.yaml"
18+
required: true
1719
runs:
1820
using: "node12"
1921
main: "main.js"

0 commit comments

Comments
 (0)