Skip to content

Commit fa093f2

Browse files
jaiveerkJaiveer KatariyaOliverMKing
authored
Modifying README to include instructions/examples for directory functionality (#183)
* Added some tests, not sure what else to try but gonna think of more examples * forgot some files * reverted package-lock.json * Added empty dir test * Cleaned up some extra spaces * Add node modules and compiled JavaScript from main * forgot to actually include functionality * removed unnecessary files * Update .gitignore * Update .gitignore * Update .gitignore * thx david * renamed searchFilesRec * integrations test fix * added examples to README * added note about depth * added additional note * removed ticks * changed version string Co-authored-by: Jaiveer Katariya <[email protected]> Co-authored-by: Oliver King <[email protected]>
1 parent aabcfcb commit fa093f2

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

README.md

+16-13
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Following are the key capabilities of this action:
4242
</tr>
4343
<tr>
4444
<td>manifests </br></br>(Required)</td>
45-
<td>Path to the manifest files to be used for deployment</td>
45+
<td>Path to the manifest files to be used for deployment. These can also be directories containing manifest files, in which case, all manifest files in the referenced directory at every depth will be deployed. Files not ending in .yml or .yaml will be ignored.</td>
4646
</tr>
4747
<tr>
4848
<td>namespace </br></br>(Optional)
@@ -105,12 +105,11 @@ Following are the key capabilities of this action:
105105
### Basic deployment (without any deployment strategy)
106106

107107
```yaml
108-
- uses: Azure/k8s-deploy@v1.4
108+
- uses: Azure/k8s-deploy@v3.1
109109
with:
110110
namespace: "myapp"
111111
manifests: |
112-
deployment.yaml
113-
service.yaml
112+
dir/manifestsDirectory
114113
images: "contoso.azurecr.io/myapp:${{ event.run_id }}"
115114
imagepullsecrets: |
116115
image-pull-secret1
@@ -121,7 +120,7 @@ Following are the key capabilities of this action:
121120
### Canary deployment without service mesh
122121
123122
```yaml
124-
- uses: Azure/k8s-deploy@v1.4
123+
- uses: Azure/k8s-deploy@v3.1
125124
with:
126125
namespace: "myapp"
127126
images: "contoso.azurecr.io/myapp:${{ event.run_id }}"
@@ -131,6 +130,7 @@ Following are the key capabilities of this action:
131130
manifests: |
132131
deployment.yaml
133132
service.yaml
133+
dir/manifestsDirectory
134134
strategy: canary
135135
action: deploy
136136
percentage: 20
@@ -139,7 +139,7 @@ Following are the key capabilities of this action:
139139
To promote/reject the canary created by the above snippet, the following YAML snippet could be used:
140140
141141
```yaml
142-
- uses: Azure/k8s-deploy@v1.4
142+
- uses: Azure/k8s-deploy@v3.1
143143
with:
144144
namespace: "myapp"
145145
images: "contoso.azurecr.io/myapp:${{ event.run_id }}"
@@ -149,14 +149,15 @@ To promote/reject the canary created by the above snippet, the following YAML sn
149149
manifests: |
150150
deployment.yaml
151151
service.yaml
152+
dir/manifestsDirectory
152153
strategy: canary
153154
action: promote # substitute reject if you want to reject
154155
```
155156
156157
### Canary deployment based on Service Mesh Interface
157158
158159
```yaml
159-
- uses: Azure/k8s-deploy@v1.4
160+
- uses: Azure/k8s-deploy@v3.1
160161
with:
161162
namespace: "myapp"
162163
images: "contoso.azurecr.io/myapp:${{ event.run_id }}"
@@ -166,6 +167,7 @@ To promote/reject the canary created by the above snippet, the following YAML sn
166167
manifests: |
167168
deployment.yaml
168169
service.yaml
170+
dir/manifestsDirectory
169171
strategy: canary
170172
action: deploy
171173
traffic-split-method: smi
@@ -176,7 +178,7 @@ To promote/reject the canary created by the above snippet, the following YAML sn
176178
To promote/reject the canary created by the above snippet, the following YAML snippet could be used:
177179
178180
```yaml
179-
- uses: Azure/k8s-deploy@v1.4
181+
- uses: Azure/k8s-deploy@v3.1
180182
with:
181183
namespace: "myapp"
182184
images: "contoso.azurecr.io/myapp:${{ event.run_id }} "
@@ -186,6 +188,7 @@ To promote/reject the canary created by the above snippet, the following YAML sn
186188
manifests: |
187189
deployment.yaml
188190
service.yaml
191+
dir/manifestsDirectory
189192
strategy: canary
190193
traffic-split-method: smi
191194
action: reject # substitute reject if you want to reject
@@ -194,7 +197,7 @@ To promote/reject the canary created by the above snippet, the following YAML sn
194197
### Blue-Green deployment with different route methods
195198
196199
```yaml
197-
- uses: Azure/k8s-deploy@v1.4
200+
- uses: Azure/k8s-deploy@v3.1
198201
with:
199202
namespace: "myapp"
200203
images: "contoso.azurecr.io/myapp:${{ event.run_id }}"
@@ -214,7 +217,7 @@ To promote/reject the canary created by the above snippet, the following YAML sn
214217
To promote/reject the green workload created by the above snippet, the following YAML snippet could be used:
215218
216219
```yaml
217-
- uses: Azure/k8s-deploy@v1.4
220+
- uses: Azure/k8s-deploy@v3.1
218221
with:
219222
namespace: "myapp"
220223
images: "contoso.azurecr.io/myapp:${{ event.run_id }}"
@@ -224,7 +227,7 @@ To promote/reject the green workload created by the above snippet, the following
224227
manifests: |
225228
deployment.yaml
226229
service.yaml
227-
ingress-yml
230+
ingress.yml
228231
strategy: blue-green
229232
route-method: ingress # should be the same as the value when action was deploy
230233
action: promote # substitute reject if you want to reject
@@ -271,7 +274,7 @@ jobs:
271274
container-registry-password: ${{ secrets.REGISTRY_PASSWORD }}
272275
secret-name: demo-k8s-secret
273276

274-
- uses: Azure/k8s-deploy@v1.4
277+
- uses: Azure/k8s-deploy@v3.1
275278
with:
276279
action: deploy
277280
manifests: |
@@ -317,7 +320,7 @@ jobs:
317320
container-registry-password: ${{ secrets.REGISTRY_PASSWORD }}
318321
secret-name: demo-k8s-secret
319322

320-
- uses: Azure/k8s-deploy@v1.4
323+
- uses: Azure/k8s-deploy@v3.1
321324
with:
322325
action: deploy
323326
manifests: |

0 commit comments

Comments
 (0)