Skip to content

Commit 143f57d

Browse files
committed
Using new shared build workflow
1 parent 41400b7 commit 143f57d

4 files changed

Lines changed: 48 additions & 256 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
tags-ignore: ['**']
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
uses: bfren/docker/.github/workflows/build.yml@shared-build
14+
with:
15+
image: node
16+
folders: |
17+
20
18+
21
19+
22
20+
23
21+
24
22+
26
23+
platforms: |
24+
linux/amd64
25+
linux/arm/v7
26+
linux/arm64
27+
tags: |
28+
node${FOLDER}
29+
node${FOLDER}-${VERSION_MAJOR}
30+
node${FOLDER}-${VERSION_MINOR}
31+
node${FOLDER}-${VERSION}
32+
node${NODE_MINOR}
33+
node${NODE_MINOR}-${VERSION}
34+
secrets:
35+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
36+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
37+
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}

‎.github/workflows/dev.yml‎

Lines changed: 0 additions & 131 deletions
This file was deleted.

‎.github/workflows/publish.yml‎

Lines changed: 0 additions & 113 deletions
This file was deleted.

‎README.md‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Node.js
22

3-
![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)
3+
![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)
44

55
[Docker Hub](https://hub.docker.com/r/bfren/node) - [Quay.io](https://quay.io/repository/bfren/node) - [bfren ecosystem](https://github.com/bfren/docker)
66

@@ -17,7 +17,7 @@ With your app (including `node_modules`) in `./app`, and `index.js` listening on
1717
```yaml
1818
services:
1919
app:
20-
image: quay.io/bfren/node:node24-4.2
20+
image: quay.io/bfren/node:node24-5.0
2121
restart: unless-stopped
2222
ports:
2323
- "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
4545
| Tag | Example | Use when |
4646
| ----------------- | ----------------- | ----------------------------------------------- |
4747
| `nodeN` | `node24` | You want the latest image for a Node.js version |
48-
| `nodeN-MAJOR` | `node24-4` | You want updates, but not breaking changes |
49-
| `nodeN-MINOR` | `node24-4.2` | You want fixes only - **recommended** |
50-
| `nodeN-VERSION` | `node24-4.2.6` | You want to pin this image exactly |
51-
| `nodeN.M` | `node24.18` | You want an exact Node.js release |
52-
| `nodeN.M-VERSION` | `node24.18-4.2.6` | You want to pin both |
53-
| `latest`, `4.2.6` | | As above, on Node.js 24 |
48+
| `nodeN-MAJOR` | `node24-5` | You want updates, but not breaking changes |
49+
| `nodeN-MINOR` | `node24-5.0` | You want fixes only - **recommended** |
50+
| `nodeN-VERSION` | `node24-5.0.1` | You want to pin this image exactly |
51+
| `nodeN.M` | `node24.22` | You want an exact Node.js release |
52+
| `nodeN.M-VERSION` | `node24.22-5.0.1` | You want to pin both |
5453

5554
| Node.js | Release | Alpine | Security support ends |
5655
| ------- | ------- | ------ | --------------------- |
57-
| 26 | 26.5.1 | 3.24 | 2029-04-30 (LTS) |
58-
| 24 | 24.18.1 | 3.24 | 2028-04-30 (LTS) |
56+
| 26 | 26.12.1 | 3.24 | 2029-04-30 (LTS) |
57+
| 24 | 24.22.1 | 3.24 | 2028-04-30 (LTS) |
5958
| 23 | 23.11.1 | 3.22 | ended 2025-06-01 |
60-
| 22 | 22.23.2 | 3.22 | 2027-04-30 (LTS) |
59+
| 22 | 22.23.4 | 3.22 | 2027-04-30 (LTS) |
6160
| 21 | 21.7.3 | 3.20 | ended 2024-06-01 |
6261
| 20 | 20.15.1 | 3.20 | ended 2026-04-30 |
6362

@@ -94,7 +93,7 @@ The health check is the base image's, which checks cron is running - it doesn't
9493
Copy your app into `/app/live` and install its dependencies when the image is built:
9594

9695
```dockerfile
97-
FROM quay.io/bfren/node:node24-4.2
96+
FROM quay.io/bfren/node:node24-5.0
9897
9998
COPY ./app /app/live
10099
RUN cd /app/live && npm ci --omit=dev

0 commit comments

Comments
 (0)