Skip to content

Commit

Permalink
Upgrade node version for service containers (#34453)
Browse files Browse the repository at this point in the history
Co-authored-by: itecompro <[email protected]>
Co-authored-by: Alex Nguyen <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent dea8b18 commit 33b90d2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -137,7 +137,7 @@ my_job:
```yaml
jobs:
my_job:
container: node:10.16-jessie
container: node:20-bookworm-slim
```

{% endraw %}
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion content/actions/writing-workflows/about-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/reusables/actions/service-container-host.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 33b90d2

Please sign in to comment.