Upgrade node version for service containers (#34453)
Co-authored-by: itecompro <16090309+itecompro@users.noreply.github.com> Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com>
This commit is contained in:
@@ -125,7 +125,7 @@ Below is an example of the syntax for each system.
|
||||
|
||||
```yaml
|
||||
my_job:
|
||||
image: node:10.16-jessie
|
||||
image: node:20-bookworm-slim
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
@@ -137,7 +137,7 @@ my_job:
|
||||
```yaml
|
||||
jobs:
|
||||
my_job:
|
||||
container: node:10.16-jessie
|
||||
container: node:20-bookworm-slim
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
@@ -369,7 +369,7 @@ container-job:
|
||||
POSTGRES_HOST: postgres
|
||||
# The default PostgreSQL port
|
||||
POSTGRES_PORT: 5432
|
||||
image: node:10.18-jessie
|
||||
image: node:20-bookworm-slim
|
||||
services:
|
||||
- postgres
|
||||
script:
|
||||
@@ -391,7 +391,7 @@ container-job:
|
||||
jobs:
|
||||
container-job:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:10.18-jessie
|
||||
container: node:20-bookworm-slim
|
||||
|
||||
services:
|
||||
postgres:
|
||||
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
# Containers must run in Linux based operating systems
|
||||
runs-on: ubuntu-latest
|
||||
# Docker Hub image that `container-job` executes in
|
||||
container: node:10.18-jessie
|
||||
container: node:20-bookworm-slim
|
||||
|
||||
# Service containers to run with `container-job`
|
||||
services:
|
||||
@@ -103,7 +103,7 @@ jobs:
|
||||
# Containers must run in Linux based operating systems
|
||||
runs-on: ubuntu-latest
|
||||
# Docker Hub image that `container-job` executes in
|
||||
container: node:10.18-jessie
|
||||
container: node:20-bookworm-slim
|
||||
|
||||
# Service containers to run with `container-job`
|
||||
services:
|
||||
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
# Containers must run in Linux based operating systems
|
||||
runs-on: ubuntu-latest
|
||||
# Docker Hub image that `container-job` executes in
|
||||
container: node:10.18-jessie
|
||||
container: node:20-bookworm-slim
|
||||
|
||||
# Service containers to run with `container-job`
|
||||
services:
|
||||
@@ -100,7 +100,7 @@ jobs:
|
||||
# Containers must run in Linux based operating systems
|
||||
runs-on: ubuntu-latest
|
||||
# Docker Hub image that `container-job` executes in
|
||||
container: node:10.18-jessie
|
||||
container: node:20-bookworm-slim
|
||||
|
||||
# Service containers to run with `container-job`
|
||||
services:
|
||||
|
||||
@@ -157,7 +157,7 @@ If your job requires a database or cache service, you can use the [`services`](/
|
||||
jobs:
|
||||
container-job:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:10.18-jessie
|
||||
container: node:20-bookworm-slim
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
|
||||
@@ -1 +1 @@
|
||||
This workflow configures a job that runs in the `node:10.18-jessie` container and uses the `ubuntu-latest` {% ifversion not ghes %} {% data variables.product.prodname_dotcom %}-hosted {%- endif %} runner as the Docker host for the container. For more information about the `node:10.18-jessie` container, see the [node image](https://hub.docker.com/_/node) on Docker Hub.
|
||||
This workflow configures a job that runs in the `node:20-bookworm-slim` container and uses the `ubuntu-latest` {% ifversion not ghes %} {% data variables.product.prodname_dotcom %}-hosted {%- endif %} runner as the Docker host for the container. For more information about the `node:20-bookworm-slim` container, see the [node image](https://hub.docker.com/_/node) on Docker Hub.
|
||||
|
||||
Reference in New Issue
Block a user