Skip to content

Commit

Permalink
Merge pull request #19 from tjsr/versions/node/20.18.0
Browse files Browse the repository at this point in the history
Update to node 20.18.0 and npm 10.9.0.
  • Loading branch information
tjsr authored Oct 5, 2024
2 parents 7ce2fde + ab1ebc9 commit a02e3d8
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@ name: Release
run-name: ${{ github.actor }} Building and pushing node_patched_npm
on: [push, workflow_dispatch]
env:
NODE_VERSION: '20.15.1'
NODE_VERSION: '20.18.0'
ALPINE_VERSION: '3.20'
NPM_VERSION: '10.8.2'
LATEST_TAG: '20.15.1-alpine3.20-npm10.8.2'
LATEST_IMAGE_TAG: 'node_patched_npm:20.15.1-alpine3.20-npm10.8.2'
NPM_VERSION: '10.9.0'
LATEST_TAG: '20.18.0-alpine3.20-npm10.9.0'
LATEST_IMAGE_TAG: 'node_patched_npm:20.18.0-alpine3.20-npm10.9.0'
jobs:
node_matrix:
strategy:
matrix:
node:
- version: '18.20.4'
- version: '20.15.1'
- version: '20.18.0'
- version: '22.4.1'
alpine:
- version: '3.20'
npm:
- version: '10.8.2'
- version: '10.9.0'
runs-on: ubuntu-latest
steps:
- id: matrix-image
Expand Down Expand Up @@ -59,7 +61,7 @@ jobs:

- name: Confirming that image will be pushed.
id: push-image
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' || vars.PUSH_BRANCH == steps.branch-names.outputs.current_branch }}
if: ${{ github.ref == 'refs/head/main' || github.event_name == 'workflow_dispatch' || vars.PUSH_BRANCH == steps.branch-names.outputs.current_branch }}
run: |
echo "Pushing image."
echo "Fired by workflow: ${{ github.event_name == 'workflow_dispatch' }}"
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"jest.debugMode": false,
"jest.enable": false
}
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG NODE_VERSION=20.15.1
ARG NODE_VERSION=20.18.0
ARG ALPINE_VERSION=3.20
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_patched_npm
ARG NODE_VERSION=20.15.1
ARG NODE_VERSION=20.18.0
ARG ALPINE_VERSION=3.20
ARG NPM_VERSION=10.8.2
ARG NPM_VERSION=10.9.0
LABEL org.opencontainers.image.description="node_patched_npm is a Node.js image with most up-to-date npm versions globally installed and some global notifications settings disabled."
LABEL org.opencontainers.image.authors="Tim Rowe <[email protected]>"
LABEL org.opencontainers.image.source="https://github.com/tjsr/node_patched_npm.git"
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The current matrix is:
- 20.13.1
- 20.14.0
- 20.15.1
- 20.18.0
- alpine
- ~~3.18~~
- ~~3.19~~
Expand All @@ -22,14 +23,15 @@ The current matrix is:
- ~~10.6.0~~
- 10.7.0
- 10.8.2
- 10.9.0

## Architecture

This image is built for both linux/amd64 and linux/arm64 (Mac/AWS Graviton)

## Usage

You may need to log in to ghcr.io to access/pull images. Try `docker pull ghcr.io/tjsr/node_patched_npm:20.15.1-alpine3.20-npm10.8.2` or even just
You may need to log in to ghcr.io to access/pull images. Try `docker pull ghcr.io/tjsr/node_patched_npm:20.18.0-alpine3.20-npm10.9.0` or even just
`docker pull ghcr.io/tjsr/node_patched_npm:latest`

## Smaller images
Expand Down
21 changes: 21 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"node": [
{
"version": "18.20.4"
},
{
"version": "20.15.1"
},
{
"version": "20.18.0"
},
{
"version": "22.5.0"
}
],
"npm": [
{
"version": "10.9.0"
}
]
}

0 comments on commit a02e3d8

Please sign in to comment.