Skip to content

Commit

Permalink
feat: adds Node.js 22 (Jod) support
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 authored Jul 23, 2024
1 parent 858816c commit 3799bb1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs:
matrix:
docker-file:
- path: 18
tags: "18 hydrogen latest"
tags: "18 hydrogen"
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7,linux/arm/v6
- path: 20
tags: "20 iron"
tags: "20 iron latest"
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7,linux/arm/v6
- path: 22
tags: "22 jod"
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7,linux/arm/v6

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
run: |
docker run -i $(docker build -q 18) /bin/sh -c "node --version && npm --version && git --version"
docker run -i $(docker build -q 20) /bin/sh -c "node --version && npm --version && git --version"
docker run -i $(docker build -q 22) /bin/sh -c "node --version && npm --version && git --version"
auto-merge:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:

- run: brew install hadolint

- run: hadolint {18,20}/Dockerfile
- run: hadolint {18,20,22}/Dockerfile
2 changes: 1 addition & 1 deletion 20/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-alpine
FROM node:iron-alpine
LABEL maintainer "Tim Brust <[email protected]>"

ARG REFRESHED_AT
Expand Down
10 changes: 10 additions & 0 deletions 22/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:22-alpine
LABEL maintainer "Tim Brust <[email protected]>"

ARG REFRESHED_AT
ENV REFRESHED_AT $REFRESHED_AT

RUN apk -U upgrade \
&& apk add --no-cache \
git \
openssh
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
[![buildx Status](https://github.com/timbru31/docker-node-alpine-git/workflows/buildx/badge.svg)](https://github.com/timbru31/docker-node-alpine-git/actions?query=workflow%3Abuildx)
[![Lint Dockerfiles](https://github.com/timbru31/docker-node-alpine-git/workflows/Lint%20Dockerfiles/badge.svg)](https://github.com/timbru31/docker-node-alpine-git/actions?query=workflow%3A%22Lint+Dockerfiles%22)

A minimal Dockerfile based on Node.js 18 LTS (Hydrogen) or Node.js 20 (Iron) alpine with Git and ssh installed.
A minimal Dockerfile based on Node.js 18 LTS (Hydrogen), Node.js 20 LTS (Iron) or Node.js 22 (Jod) alpine with Git and ssh installed.

## What's included

- Node.js 18 LTS (Hydrogen) or 20 (Iron)
- Node.js 18 LTS (Hydrogen), 20 LTS (Iron) or 22 (Jod)
- npm 9
- yarn
- Git
Expand Down

0 comments on commit 3799bb1

Please sign in to comment.