Skip to content

Commit 1811836

Browse files
authored
create v5 node20 release (#316)
* Update package.json * Update release-pr.yml * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * format * Update codeql.yml * Update codeql.yml * Update codeql.yml * Update codeql.yml * format * update the current tags * Update codeql.yml * Update CHANGELOG.md * Update CHANGELOG.md * Update codeql.yml
1 parent 10d9433 commit 1811836

5 files changed

Lines changed: 56 additions & 32 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,29 @@ jobs:
1010
CodeQL-Build:
1111
# CodeQL runs on ubuntu-latest and windows-latest
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
security-events: write
1316

1417
steps:
1518
- name: Checkout repository
16-
uses: actions/checkout@v3
19+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
1720
with:
1821
# We must fetch at least the immediate parents so that if this is
1922
# a pull request then we can checkout the head.
2023
fetch-depth: 2
2124

2225
# Initializes the CodeQL tools for scanning.
2326
- name: Initialize CodeQL
24-
uses: github/codeql-action/init@v2
27+
uses: github/codeql-action/init@05963f47d870e2cb19a537396c1f668a348c7d8f #v3.24.8
2528
# Override language selection by uncommenting this and choosing your languages
2629
# with:
2730
# languages: go, javascript, csharp, python, cpp, java
2831

2932
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3033
# If this step fails, then you should remove it and run the build manually (see below)
3134
- name: Autobuild
32-
uses: github/codeql-action/autobuild@v2
35+
uses: github/codeql-action/autobuild@05963f47d870e2cb19a537396c1f668a348c7d8f #v3.24.8
3336

3437
# ℹ️ Command-line programs to run using the OS shell.
3538
# 📚 https://git.io/JvXDl
@@ -43,4 +46,4 @@ jobs:
4346
# make release
4447

4548
- name: Perform CodeQL Analysis
46-
uses: github/codeql-action/analyze@v2
49+
uses: github/codeql-action/analyze@05963f47d870e2cb19a537396c1f668a348c7d8f #v3.24.8

.github/workflows/release-pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release Project
1+
name: Release Project
22

33
on:
44
push:
@@ -10,6 +10,9 @@ on:
1010

1111
jobs:
1212
release:
13-
uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@e4a1a0385530d6861c9a9b7262058ad33b10c769
13+
permissions:
14+
actions: read
15+
contents: write
16+
uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@v1
1417
with:
1518
changelogPath: ./CHANGELOG.md

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
# Changelog
22

3-
## [v4.10.0] - 2023-10-30
3+
## [5.0.0] - 2024-03-12
4+
5+
### Changed
6+
7+
- #309 Updated to Node20 and upgraded release workflows to @v1 tag
8+
- #306 update release workflow to use new prefix, remove deprecated release
9+
- #303 fix: ensure imageNames are not empty strings
10+
- #299 bump release workflow sha
11+
- #298 bump minikube to fix runner deps
12+
- #297 update release workflow
13+
14+
### Added
15+
16+
- #304 add v prefix for version tagging
17+
- #302 adding ncc to build
18+
- #301 adding release workflow artifact fix
19+
20+
## [4.10.0] - 2023-10-30
421

522
### Added
623

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
185185
To 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
224224
To 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
263263
To 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 }}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "k8s-deploy-action",
3-
"version": "0.0.0",
3+
"version": "5.0.0",
44
"author": "Deepak Sattiraju",
55
"license": "MIT",
66
"scripts": {
7-
"build": "npm i ncc && npx ncc build src/run.ts -o lib",
7+
"prebuild": "npm i @ncc/vercel",
8+
"build": "ncc build src/run.ts -o lib",
89
"test": "jest",
910
"coverage": "jest --coverage=true",
1011
"format": "prettier --write .",

0 commit comments

Comments
 (0)