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
|
```yaml
|
||||||
my_job:
|
my_job:
|
||||||
image: node:10.16-jessie
|
image: node:20-bookworm-slim
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
@@ -137,7 +137,7 @@ my_job:
|
|||||||
```yaml
|
```yaml
|
||||||
jobs:
|
jobs:
|
||||||
my_job:
|
my_job:
|
||||||
container: node:10.16-jessie
|
container: node:20-bookworm-slim
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
@@ -369,7 +369,7 @@ container-job:
|
|||||||
POSTGRES_HOST: postgres
|
POSTGRES_HOST: postgres
|
||||||
# The default PostgreSQL port
|
# The default PostgreSQL port
|
||||||
POSTGRES_PORT: 5432
|
POSTGRES_PORT: 5432
|
||||||
image: node:10.18-jessie
|
image: node:20-bookworm-slim
|
||||||
services:
|
services:
|
||||||
- postgres
|
- postgres
|
||||||
script:
|
script:
|
||||||
@@ -391,7 +391,7 @@ container-job:
|
|||||||
jobs:
|
jobs:
|
||||||
container-job:
|
container-job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:10.18-jessie
|
container: node:20-bookworm-slim
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ jobs:
|
|||||||
# Containers must run in Linux based operating systems
|
# Containers must run in Linux based operating systems
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Docker Hub image that `container-job` executes in
|
# 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`
|
# Service containers to run with `container-job`
|
||||||
services:
|
services:
|
||||||
@@ -103,7 +103,7 @@ jobs:
|
|||||||
# Containers must run in Linux based operating systems
|
# Containers must run in Linux based operating systems
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Docker Hub image that `container-job` executes in
|
# 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`
|
# Service containers to run with `container-job`
|
||||||
services:
|
services:
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ jobs:
|
|||||||
# Containers must run in Linux based operating systems
|
# Containers must run in Linux based operating systems
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Docker Hub image that `container-job` executes in
|
# 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`
|
# Service containers to run with `container-job`
|
||||||
services:
|
services:
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
# Containers must run in Linux based operating systems
|
# Containers must run in Linux based operating systems
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Docker Hub image that `container-job` executes in
|
# 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`
|
# Service containers to run with `container-job`
|
||||||
services:
|
services:
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ If your job requires a database or cache service, you can use the [`services`](/
|
|||||||
jobs:
|
jobs:
|
||||||
container-job:
|
container-job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:10.18-jessie
|
container: node:20-bookworm-slim
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: 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