From 1ede3a27b96bce0f002a1c80ce0a51c9340c5660 Mon Sep 17 00:00:00 2001 From: Trey Valenta Date: Fri, 22 Sep 2023 14:14:29 -0700 Subject: [PATCH] Use node:18 in examples of actions with containers The image `node:14.16` is old, and doesn't work with `actions/checkout@v4` which might contribute to issues such as https://github.com/actions/checkout/issues/1474 This change uses `node:18` for the example, which is the LTS version of node for one more month. https://github.com/nodejs/release#release-schedule --- .../customizing-the-containers-used-by-jobs.md | 4 ++-- .../actions/jobs/section-running-jobs-in-a-container.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/actions/hosting-your-own-runners/managing-self-hosted-runners/customizing-the-containers-used-by-jobs.md b/content/actions/hosting-your-own-runners/managing-self-hosted-runners/customizing-the-containers-used-by-jobs.md index 192bb4aef7da..714b9840568a 100644 --- a/content/actions/hosting-your-own-runners/managing-self-hosted-runners/customizing-the-containers-used-by-jobs.md +++ b/content/actions/hosting-your-own-runners/managing-self-hosted-runners/customizing-the-containers-used-by-jobs.md @@ -96,7 +96,7 @@ The `prepare_job` command is called when a job is started. {% data variables.pro "state": {}, "args": { "jobContainer": { - "image": "node:14.16", + "image": "node:18" "workingDirectory": "/__w/octocat-test2/octocat-test2", "createOptions": "--cpus 1", "environmentVariables": { @@ -288,7 +288,7 @@ If you're using a Docker image, you can specify the image name in the `"image":` } }, "args": { - "image": "node:14.16", + "image": "node:18", "dockerfile": null, "entryPointArgs": ["-f", "/dev/null"], "entryPoint": "tail", diff --git a/data/reusables/actions/jobs/section-running-jobs-in-a-container.md b/data/reusables/actions/jobs/section-running-jobs-in-a-container.md index d3d1bb02cb52..b2a7db4150f1 100644 --- a/data/reusables/actions/jobs/section-running-jobs-in-a-container.md +++ b/data/reusables/actions/jobs/section-running-jobs-in-a-container.md @@ -19,7 +19,7 @@ jobs: container-test-job: runs-on: ubuntu-latest container: - image: node:14.16 + image: node:18 env: NODE_ENV: development ports: @@ -38,5 +38,5 @@ When you only specify a container image, you can omit the `image` keyword. jobs: container-test-job: runs-on: ubuntu-latest - container: node:14.16 + container: node:18 ```