From 76dbda7f4cb8d14d04581a3878bb167a6fb2ea02 Mon Sep 17 00:00:00 2001 From: bfren Date: Thu, 29 Oct 2026 17:43:42 +0000 Subject: [PATCH 1/3] Bumping version to 5.0.1 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 28cbf7c..32f3eaa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.0.0 \ No newline at end of file +5.0.1 \ No newline at end of file From 41400b79fc7068cf06f352a10960a74fa3a266a1 Mon Sep 17 00:00:00 2001 From: bfren Date: Thu, 29 Oct 2026 17:43:46 +0000 Subject: [PATCH 2/3] Re-adding arm/v7 builds --- .github/workflows/dev.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- README.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 6019e53..63bd11b 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -94,7 +94,7 @@ jobs: BF_IMAGE=${{ env.REPOSITORY_NAME }} BF_VERSION=${{ steps.version.outputs.contents }} push: ${{ startsWith(github.ref, 'refs/heads/') }} - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm/v7,linux/arm64 tags: | bfren/node:node${{ matrix.node }}-dev bfren/node:node${{ matrix.node }}-${{ steps.version_major.outputs.contents }}-dev @@ -120,7 +120,7 @@ jobs: BF_IMAGE=${{ env.REPOSITORY_NAME }} BF_VERSION=${{ steps.version.outputs.contents }} push: ${{ startsWith(github.ref, 'refs/heads/') }} - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm/v7,linux/arm64 tags: | bfren/node:dev bfren/node:${{ steps.version.outputs.contents }}-dev diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e062358..b22a73c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -75,7 +75,7 @@ jobs: BF_PUBLISHING=1 BF_VERSION=${{ steps.version.outputs.contents }} push: true - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm/v7,linux/arm64 tags: | bfren/node:node${{ matrix.node }} bfren/node:node${{ matrix.node }}-${{ steps.version_major.outputs.contents }} @@ -102,7 +102,7 @@ jobs: BF_PUBLISHING=1 BF_VERSION=${{ steps.version.outputs.contents }} push: true - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm/v7,linux/arm64 tags: | bfren/node:latest bfren/node:${{ steps.version.outputs.contents }} diff --git a/README.md b/README.md index 3708348..772edf8 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Your app must listen on `0.0.0.0` (all interfaces), not `127.0.0.1` - otherwise ## Tags -Images are published to Docker Hub (`bfren/node`) and Quay.io (`quay.io/bfren/node`) for `linux/amd64` and `linux/arm64`. +Images are published to Docker Hub (`bfren/node`) and Quay.io (`quay.io/bfren/node`) for `linux/amd64`, `linux/arm/v7` and `linux/arm64`. | Tag | Example | Use when | | ----------------- | ----------------- | ----------------------------------------------- | From 143f57dc09b92d2c1805df4a2a988c8abbacd5fc Mon Sep 17 00:00:00 2001 From: bfren Date: Thu, 29 Oct 2026 18:15:06 +0000 Subject: [PATCH 3/3] Using new shared build workflow --- .github/workflows/build.yml | 37 ++++++++++ .github/workflows/dev.yml | 131 ---------------------------------- .github/workflows/publish.yml | 113 ----------------------------- README.md | 23 +++--- 4 files changed, 48 insertions(+), 256 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/dev.yml delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ab6e1d6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: build + +on: + push: + branches: ['**'] + tags-ignore: ['**'] + release: + types: [published] + workflow_dispatch: + +jobs: + build: + uses: bfren/docker/.github/workflows/build.yml@shared-build + with: + image: node + folders: | + 20 + 21 + 22 + 23 + 24 + 26 + platforms: | + linux/amd64 + linux/arm/v7 + linux/arm64 + tags: | + node${FOLDER} + node${FOLDER}-${VERSION_MAJOR} + node${FOLDER}-${VERSION_MINOR} + node${FOLDER}-${VERSION} + node${NODE_MINOR} + node${NODE_MINOR}-${VERSION} + secrets: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml deleted file mode 100644 index 63bd11b..0000000 --- a/.github/workflows/dev.yml +++ /dev/null @@ -1,131 +0,0 @@ -name: dev - -on: - push: - branches: ['**'] - tags-ignore: ['**'] - workflow_dispatch: - -env: - TEST_TAG: node:test - -jobs: - build: - strategy: - fail-fast: false - matrix: - node: [ "20", "21", "22", "23", "24", "26" ] - runs-on: ubuntu-latest - steps: - - - name: Checkout code - uses: actions/checkout@v7 - - - name: Get repository name - run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV - shell: bash - - - name: Read image version - uses: bfren/read-file@v2 - with: - file: ./VERSION - id: version - - - name: Read Node.js version - minor - uses: bfren/read-file@v2 - with: - file: ./${{ matrix.node }}/overlay/tmp/NODE_MINOR - id: node_minor - - - name: Read image version - uses: bfren/read-file@v2 - with: - file: ./VERSION_MAJOR - id: version_major - - - name: Read image version - uses: bfren/read-file@v2 - with: - file: ./VERSION_MINOR - id: version_minor - - - name: Set up QEMU - uses: docker/setup-qemu-action@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 - - - name: Login to DockerHub - uses: docker/login-action@v4 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Login to Quay.io Container Registry - uses: docker/login-action@v4 - with: - registry: quay.io - username: ${{ github.repository_owner }} - password: ${{ secrets.QUAY_TOKEN }} - - - name: Build and export - id: docker_export - uses: docker/build-push-action@v7 - with: - file: ./${{ matrix.node }}/Dockerfile - build-args: | - BF_IMAGE=${{ env.REPOSITORY_NAME }} - BF_VERSION=${{ steps.version.outputs.contents }} - load: true - tags: ${{ env.TEST_TAG }} - - - name: Run tests - id: docker_test - run: | - docker run --entrypoint /test ${{ env.TEST_TAG }} - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v7 - with: - context: . - file: ./${{ matrix.node }}/Dockerfile - build-args: | - BF_IMAGE=${{ env.REPOSITORY_NAME }} - BF_VERSION=${{ steps.version.outputs.contents }} - push: ${{ startsWith(github.ref, 'refs/heads/') }} - platforms: linux/amd64,linux/arm/v7,linux/arm64 - tags: | - bfren/node:node${{ matrix.node }}-dev - bfren/node:node${{ matrix.node }}-${{ steps.version_major.outputs.contents }}-dev - bfren/node:node${{ matrix.node }}-${{ steps.version_minor.outputs.contents }}-dev - bfren/node:node${{ matrix.node }}-${{ steps.version.outputs.contents }}-dev - bfren/node:node${{ steps.node_minor.outputs.contents }}-dev - bfren/node:node${{ steps.node_minor.outputs.contents }}-${{ steps.version.outputs.contents }}-dev - quay.io/bfren/node:node${{ matrix.node }}-dev - quay.io/bfren/node:node${{ matrix.node }}-${{ steps.version_major.outputs.contents }}-dev - quay.io/bfren/node:node${{ matrix.node }}-${{ steps.version_minor.outputs.contents }}-dev - quay.io/bfren/node:node${{ matrix.node }}-${{ steps.version.outputs.contents }}-dev - quay.io/bfren/node:node${{ steps.node_minor.outputs.contents }}-dev - quay.io/bfren/node:node${{ steps.node_minor.outputs.contents }}-${{ steps.version.outputs.contents }}-dev - - - name: Build and push default - id: docker_build_default - if: matrix.node == '24' - uses: docker/build-push-action@v7 - with: - context: . - file: ./${{ matrix.node }}/Dockerfile - build-args: | - BF_IMAGE=${{ env.REPOSITORY_NAME }} - BF_VERSION=${{ steps.version.outputs.contents }} - push: ${{ startsWith(github.ref, 'refs/heads/') }} - platforms: linux/amd64,linux/arm/v7,linux/arm64 - tags: | - bfren/node:dev - bfren/node:${{ steps.version.outputs.contents }}-dev - quay.io/bfren/node:dev - quay.io/bfren/node:${{ steps.version.outputs.contents }}-dev - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index b22a73c..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,113 +0,0 @@ -name: publish - -on: - release: - types: [published] - workflow_dispatch: - -jobs: - publish: - strategy: - fail-fast: false - matrix: - node: [ "20", "21", "22", "23", "24", "26" ] - runs-on: ubuntu-latest - steps: - - - name: Checkout code - uses: actions/checkout@v7 - - - name: Get repository name - run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV - shell: bash - - - name: Read Node.js version - minor - uses: bfren/read-file@v2 - with: - file: ./${{ matrix.node }}/overlay/tmp/NODE_MINOR - id: node_minor - - - name: Read image version - uses: bfren/read-file@v2 - with: - file: ./VERSION_MAJOR - id: version_major - - - name: Read image version - uses: bfren/read-file@v2 - with: - file: ./VERSION_MINOR - id: version_minor - - - name: Read image version - uses: bfren/read-file@v2 - with: - file: ./VERSION - id: version - - - name: Set up QEMU - uses: docker/setup-qemu-action@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 - - - name: Login to DockerHub - uses: docker/login-action@v4 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Login to Quay.io Container Registry - uses: docker/login-action@v4 - with: - registry: quay.io - username: ${{ github.repository_owner }} - password: ${{ secrets.QUAY_TOKEN }} - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v7 - with: - context: . - file: ./${{ matrix.node }}/Dockerfile - build-args: | - BF_IMAGE=${{ env.REPOSITORY_NAME }} - BF_PUBLISHING=1 - BF_VERSION=${{ steps.version.outputs.contents }} - push: true - platforms: linux/amd64,linux/arm/v7,linux/arm64 - tags: | - bfren/node:node${{ matrix.node }} - bfren/node:node${{ matrix.node }}-${{ steps.version_major.outputs.contents }} - bfren/node:node${{ matrix.node }}-${{ steps.version_minor.outputs.contents }} - bfren/node:node${{ matrix.node }}-${{ steps.version.outputs.contents }} - bfren/node:node${{ steps.node_minor.outputs.contents }} - bfren/node:node${{ steps.node_minor.outputs.contents }}-${{ steps.version.outputs.contents }} - quay.io/bfren/node:node${{ matrix.node }} - quay.io/bfren/node:node${{ matrix.node }}-${{ steps.version_major.outputs.contents }} - quay.io/bfren/node:node${{ matrix.node }}-${{ steps.version_minor.outputs.contents }} - quay.io/bfren/node:node${{ matrix.node }}-${{ steps.version.outputs.contents }} - quay.io/bfren/node:node${{ steps.node_minor.outputs.contents }} - quay.io/bfren/node:node${{ steps.node_minor.outputs.contents }}-${{ steps.version.outputs.contents }} - - - name: Build and push default - id: docker_build_default - if: matrix.node == '24' - uses: docker/build-push-action@v7 - with: - context: . - file: ./${{ matrix.node }}/Dockerfile - build-args: | - BF_IMAGE=${{ env.REPOSITORY_NAME }} - BF_PUBLISHING=1 - BF_VERSION=${{ steps.version.outputs.contents }} - push: true - platforms: linux/amd64,linux/arm/v7,linux/arm64 - tags: | - bfren/node:latest - bfren/node:${{ steps.version.outputs.contents }} - quay.io/bfren/node:latest - quay.io/bfren/node:${{ steps.version.outputs.contents }} - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/README.md b/README.md index 772edf8..f215615 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Node.js -![GitHub release (latest by date)](https://img.shields.io/github/v/release/bfren/docker-node) ![Docker Pulls](https://img.shields.io/endpoint?url=https%3A%2F%2Fbfren.dev%2Fdocker%2Fpulls%2Fnode) ![Docker Image Size](https://img.shields.io/endpoint?url=https%3A%2F%2Fbfren.dev%2Fdocker%2Fsize%2Fnode) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/bfren/docker-node/dev.yml?branch=main) +![GitHub release (latest by date)](https://img.shields.io/github/v/release/bfren/docker-node) ![Docker Pulls](https://img.shields.io/endpoint?url=https%3A%2F%2Fbfren.dev%2Fdocker%2Fpulls%2Fnode) ![Docker Image Size](https://img.shields.io/endpoint?url=https%3A%2F%2Fbfren.dev%2Fdocker%2Fsize%2Fnode) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/bfren/docker-node/build.yml?branch=main) [Docker Hub](https://hub.docker.com/r/bfren/node) - [Quay.io](https://quay.io/repository/bfren/node) - [bfren ecosystem](https://github.com/bfren/docker) @@ -17,7 +17,7 @@ With your app (including `node_modules`) in `./app`, and `index.js` listening on ```yaml services: app: - image: quay.io/bfren/node:node24-4.2 + image: quay.io/bfren/node:node24-5.0 restart: unless-stopped ports: - "127.0.0.1:3000:3000" @@ -45,19 +45,18 @@ Images are published to Docker Hub (`bfren/node`) and Quay.io (`quay.io/bfren/no | Tag | Example | Use when | | ----------------- | ----------------- | ----------------------------------------------- | | `nodeN` | `node24` | You want the latest image for a Node.js version | -| `nodeN-MAJOR` | `node24-4` | You want updates, but not breaking changes | -| `nodeN-MINOR` | `node24-4.2` | You want fixes only - **recommended** | -| `nodeN-VERSION` | `node24-4.2.6` | You want to pin this image exactly | -| `nodeN.M` | `node24.18` | You want an exact Node.js release | -| `nodeN.M-VERSION` | `node24.18-4.2.6` | You want to pin both | -| `latest`, `4.2.6` | | As above, on Node.js 24 | +| `nodeN-MAJOR` | `node24-5` | You want updates, but not breaking changes | +| `nodeN-MINOR` | `node24-5.0` | You want fixes only - **recommended** | +| `nodeN-VERSION` | `node24-5.0.1` | You want to pin this image exactly | +| `nodeN.M` | `node24.22` | You want an exact Node.js release | +| `nodeN.M-VERSION` | `node24.22-5.0.1` | You want to pin both | | Node.js | Release | Alpine | Security support ends | | ------- | ------- | ------ | --------------------- | -| 26 | 26.5.1 | 3.24 | 2029-04-30 (LTS) | -| 24 | 24.18.1 | 3.24 | 2028-04-30 (LTS) | +| 26 | 26.12.1 | 3.24 | 2029-04-30 (LTS) | +| 24 | 24.22.1 | 3.24 | 2028-04-30 (LTS) | | 23 | 23.11.1 | 3.22 | ended 2025-06-01 | -| 22 | 22.23.2 | 3.22 | 2027-04-30 (LTS) | +| 22 | 22.23.4 | 3.22 | 2027-04-30 (LTS) | | 21 | 21.7.3 | 3.20 | ended 2024-06-01 | | 20 | 20.15.1 | 3.20 | ended 2026-04-30 | @@ -94,7 +93,7 @@ The health check is the base image's, which checks cron is running - it doesn't Copy your app into `/app/live` and install its dependencies when the image is built: ```dockerfile -FROM quay.io/bfren/node:node24-4.2 +FROM quay.io/bfren/node:node24-5.0 COPY ./app /app/live RUN cd /app/live && npm ci --omit=dev