@@ -132,7 +132,7 @@ Following are the key capabilities of this action:
132132# ## Basic deployment (without any deployment strategy)
133133
134134` ` ` yaml
135- - uses: Azure/k8s-deploy@v4
135+ - uses: Azure/k8s-deploy@v5
136136 with:
137137 namespace: 'myapp'
138138 manifests: |
@@ -146,7 +146,7 @@ Following are the key capabilities of this action:
146146# ## Private cluster deployment
147147
148148` ` ` yaml
149- - uses: Azure/k8s-deploy@v4
149+ - uses: Azure/k8s-deploy@v5
150150 with:
151151 resource-group: yourResourceGroup
152152 name: yourClusterName
@@ -166,7 +166,7 @@ Following are the key capabilities of this action:
166166# ## Canary deployment without service mesh
167167
168168` ` ` yaml
169- - uses: Azure/k8s-deploy@v4
169+ - uses: Azure/k8s-deploy@v5
170170 with:
171171 namespace: 'myapp'
172172 images: 'contoso.azurecr.io/myapp:${{ event.run_id }}'
@@ -185,7 +185,7 @@ Following are the key capabilities of this action:
185185To promote/reject the canary created by the above snippet, the following YAML snippet could be used :
186186
187187` ` ` yaml
188- - uses: Azure/k8s-deploy@v4
188+ - uses: Azure/k8s-deploy@v5
189189 with:
190190 namespace: 'myapp'
191191 images: 'contoso.azurecr.io/myapp:${{ event.run_id }}'
@@ -203,7 +203,7 @@ To promote/reject the canary created by the above snippet, the following YAML sn
203203# ## Canary deployment based on Service Mesh Interface
204204
205205` ` ` yaml
206- - uses: Azure/k8s-deploy@v4
206+ - uses: Azure/k8s-deploy@v5
207207 with:
208208 namespace: 'myapp'
209209 images: 'contoso.azurecr.io/myapp:${{ event.run_id }}'
@@ -224,7 +224,7 @@ To promote/reject the canary created by the above snippet, the following YAML sn
224224To promote/reject the canary created by the above snippet, the following YAML snippet could be used :
225225
226226` ` ` yaml
227- - uses: Azure/k8s-deploy@v4
227+ - uses: Azure/k8s-deploy@v5
228228 with:
229229 namespace: 'myapp'
230230 images: 'contoso.azurecr.io/myapp:${{ event.run_id }} '
@@ -243,7 +243,7 @@ To promote/reject the canary created by the above snippet, the following YAML sn
243243# ## Blue-Green deployment with different route methods
244244
245245` ` ` yaml
246- - uses: Azure/k8s-deploy@v4
246+ - uses: Azure/k8s-deploy@v5
247247 with:
248248 namespace: 'myapp'
249249 images: 'contoso.azurecr.io/myapp:${{ event.run_id }}'
@@ -263,7 +263,7 @@ To promote/reject the canary created by the above snippet, the following YAML sn
263263To promote/reject the green workload created by the above snippet, the following YAML snippet could be used :
264264
265265` ` ` yaml
266- - uses: Azure/k8s-deploy@v4
266+ - uses: Azure/k8s-deploy@v5
267267 with:
268268 namespace: 'myapp'
269269 images: 'contoso.azurecr.io/myapp:${{ event.run_id }}'
@@ -292,7 +292,7 @@ jobs:
292292 build:
293293 runs-on: ubuntu-latest
294294 steps:
295- - uses: actions/checkout@master
295+ - uses: actions/checkout@v4
296296
297297 - uses: Azure/docker-login@v1
298298 with:
@@ -304,23 +304,23 @@ jobs:
304304 docker build . -t contoso.azurecr.io/k8sdemo:${{ github.sha }}
305305 docker push contoso.azurecr.io/k8sdemo:${{ github.sha }}
306306
307- - uses: azure/setup-kubectl@v2.0
307+ - uses: azure/setup-kubectl@v4
308308
309309 # Set the target AKS cluster.
310- - uses: Azure/aks-set-context@v1
310+ - uses: Azure/aks-set-context@v4
311311 with:
312312 creds: '${{ secrets.AZURE_CREDENTIALS }}'
313313 cluster-name: contoso
314314 resource-group: contoso-rg
315315
316- - uses: Azure/k8s-create-secret@v1.1
316+ - uses: Azure/k8s-create-secret@v4
317317 with:
318318 container-registry-url: contoso.azurecr.io
319319 container-registry-username: ${{ secrets.REGISTRY_USERNAME }}
320320 container-registry-password: ${{ secrets.REGISTRY_PASSWORD }}
321321 secret-name: demo-k8s-secret
322322
323- - uses: Azure/k8s-deploy@v4
323+ - uses: Azure/k8s-deploy@v5
324324 with:
325325 action: deploy
326326 manifests: |
@@ -341,7 +341,7 @@ jobs:
341341 build:
342342 runs-on: ubuntu-latest
343343 steps:
344- - uses: actions/checkout@master
344+ - uses: actions/checkout@v4
345345
346346 - uses: Azure/docker-login@v1
347347 with:
@@ -353,13 +353,13 @@ jobs:
353353 docker build . -t contoso.azurecr.io/k8sdemo:${{ github.sha }}
354354 docker push contoso.azurecr.io/k8sdemo:${{ github.sha }}
355355
356- - uses: azure/setup-kubectl@v2.0
356+ - uses: azure/setup-kubectl@v4
357357
358- - uses: Azure/k8s-set-context@v2
358+ - uses: Azure/k8s-set-context@v4
359359 with:
360360 kubeconfig: ${{ secrets.KUBE_CONFIG }}
361361
362- - uses: Azure/k8s-create-secret@v1.1
362+ - uses: Azure/k8s-create-secret@v4
363363 with:
364364 container-registry-url: contoso.azurecr.io
365365 container-registry-username: ${{ secrets.REGISTRY_USERNAME }}
@@ -391,7 +391,7 @@ jobs:
391391 build:
392392 runs-on: ubuntu-latest
393393 steps:
394- - uses: actions/checkout@master
394+ - uses: actions/checkout@v4
395395
396396 - uses: Azure/docker-login@v1
397397 with:
@@ -423,24 +423,24 @@ jobs:
423423 username: ${{ secrets.REGISTRY_USERNAME }}
424424 password: ${{ secrets.REGISTRY_PASSWORD }}
425425
426- - uses: azure/setup-kubectl@v2.0
426+ - uses: azure/setup-kubectl@v4
427427
428428 # Set the target AKS cluster.
429- - uses: Azure/aks-set-context@v1
429+ - uses: Azure/aks-set-context@v4
430430 with:
431431 creds: '${{ secrets.AZURE_CREDENTIALS }}'
432432 cluster-name: contoso
433433 resource-group: contoso-rg
434434
435- - uses: Azure/k8s-create-secret@v1.1
435+ - uses: Azure/k8s-create-secret@v4
436436 with:
437437 namespace: ${{ env.NAMESPACE }}
438438 container-registry-url: contoso.azurecr.io
439439 container-registry-username: ${{ secrets.REGISTRY_USERNAME }}
440440 container-registry-password: ${{ secrets.REGISTRY_PASSWORD }}
441441 secret-name: demo-k8s-secret
442442
443- - uses: azure/k8s-bake@v2
443+ - uses: azure/k8s-bake@v3
444444 with:
445445 renderEngine: 'helm'
446446 helmChart: './aks-helloworld/'
@@ -450,7 +450,7 @@ jobs:
450450 helm-version: 'latest'
451451 id: bake
452452
453- - uses: Azure/k8s-deploy@v1.2
453+ - uses: Azure/k8s-deploy@v5
454454 with:
455455 action: deploy
456456 manifests: ${{ steps.bake.outputs.manifestsBundle }}
0 commit comments