1
0
mirror of synced 2025-12-19 18:10:59 -05:00

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:
Hossein Abbasi
2024-09-17 01:11:49 +10:00
committed by GitHub
parent dea8b187fb
commit 33b90d2f58
5 changed files with 10 additions and 10 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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

View File

@@ -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.