Skip to content

Commit b597eca

Browse files
authored
Merge pull request #2 from sayantan1413/sayantan1413/pattern-action
2 parents 07cac57 + 38aaf05 commit b597eca

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
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"

mesheryctl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ adapters["traefik_mesh"]=meshery-traefik-mesh:10006
2323
main() {
2424

2525
local pattern_filename=pat.yml
26-
local service_mesh="istio"
26+
local service_mesh=
2727
local service_mesh_adapter=
28-
local url="https://raw.githubusercontent.com/service-mesh-patterns/service-mesh-patterns/master/samples/IstioFilterPattern.yaml"
28+
local url=
2929

3030

3131
parse_command_line "$@"

0 commit comments

Comments
 (0)