Skip to content

Commit f47cc2a

Browse files
committed
ci: use node 24 github actions
1 parent 2f15e6f commit f47cc2a

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/build-container-images.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919

2020
- name: Set up Docker Buildx
21-
uses: docker/setup-buildx-action@v3
21+
uses: docker/setup-buildx-action@v4
2222

2323
- name: Log in to GHCR
24-
uses: docker/login-action@v3
24+
uses: docker/login-action@v4
2525
with:
2626
registry: ghcr.io
2727
username: ${{ github.actor }}
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929

3030
- name: Build and push API image
31-
uses: docker/build-push-action@v6
31+
uses: docker/build-push-action@v7
3232
with:
3333
context: .
3434
file: apps/api/Dockerfile
3535
push: true
3636
tags: ghcr.io/cnodejs/cnode-api:latest
3737

3838
- name: Build and push Web image
39-
uses: docker/build-push-action@v6
39+
uses: docker/build-push-action@v7
4040
with:
4141
context: .
4242
file: apps/web/Dockerfile

scripts/verify-container-image-delivery.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ assert.doesNotMatch(apiClient, /VITE_APP_API_BASE_URL/, "api client must not rea
2929
assert.match(uploadClient, /getApiBaseUrl\(\)/, "upload client reuses API base helper");
3030

3131
assert.match(workflow, /permissions:\s*[\s\S]*contents: read[\s\S]*packages: write/, "workflow grants minimal package permissions");
32-
assert.match(workflow, /docker\/login-action@v3/, "workflow logs in to GHCR");
32+
assert.match(workflow, /actions\/checkout@v5/, "workflow uses Node 24 compatible checkout action");
33+
assert.match(workflow, /docker\/setup-buildx-action@v4/, "workflow uses Node 24 compatible Buildx action");
34+
assert.match(workflow, /docker\/login-action@v4/, "workflow logs in to GHCR with Node 24 compatible action");
35+
assert.match(workflow, /docker\/build-push-action@v7/, "workflow uses Node 24 compatible build/push action");
3336
assert.match(workflow, /secrets\.GITHUB_TOKEN/, "workflow uses GITHUB_TOKEN");
3437
assert.match(workflow, /ghcr\.io\/cnodejs\/cnode-api:latest/, "workflow pushes API latest");
3538
assert.match(workflow, /ghcr\.io\/cnodejs\/cnode-web:latest/, "workflow pushes Web latest");

0 commit comments

Comments
 (0)