Skip to content

Commit 6d6bf6f

Browse files
authored
Merge pull request #364 from sebbo2002/template-updater/update
🔧 Update template
2 parents de0ccef + aab5cfa commit 6d6bf6f

5 files changed

Lines changed: 139 additions & 822 deletions

File tree

.github/workflows/release-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: 🔧 Setup node
2525
uses: actions/setup-node@v6
2626
with:
27-
node-version: '20'
27+
node-version: '24'
2828
cache: 'npm'
2929
- name: 📦 Install Dependencies
3030
run: npm ci

.github/workflows/test-release.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: 🔧 Setup node.js
4646
uses: actions/setup-node@v6
4747
with:
48-
node-version: 23.x
48+
node-version: 24.x
4949
cache: 'npm'
5050
- name: 📦 Install dependencies
5151
run: npm ci
@@ -68,6 +68,7 @@ jobs:
6868
- name: 🔧 Setup node.js
6969
uses: actions/setup-node@v6
7070
with:
71+
node-version: 24.x
7172
cache: 'npm'
7273
- name: 📦 Install dependencies
7374
run: npm ci
@@ -82,20 +83,20 @@ jobs:
8283
PUSH_TO_DOCKERHUB: ${{ (github.repository != 'sebbo2002/js-template') && (secrets.DOCKERHUB_TOKEN != null) }}
8384
steps:
8485
- name: ☁️ Checkout
85-
uses: actions/checkout@v4
86+
uses: actions/checkout@v6
8687
- name: 🔧 Set up QEMU
87-
uses: docker/setup-qemu-action@v3
88+
uses: docker/setup-qemu-action@v4
8889
- name: 🔧 Set up Buildx
8990
id: buildx
90-
uses: docker/setup-buildx-action@master
91+
uses: docker/setup-buildx-action@v4
9192
- name: 🔐 Login to GitHub Container Registry
92-
uses: docker/login-action@v3
93+
uses: docker/login-action@v4
9394
with:
9495
registry: ghcr.io
9596
username: ${{ github.repository_owner }}
9697
password: ${{ secrets.GITHUB_TOKEN }}
9798
- name: 🔐 Login to DockerHub
98-
uses: docker/login-action@v3
99+
uses: docker/login-action@v4
99100
if: ${{ env.PUSH_TO_DOCKERHUB == 'true' }}
100101
with:
101102
username: ${{ github.repository_owner }}
@@ -104,23 +105,24 @@ jobs:
104105
id: buildVars
105106
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
106107
- name: 🔧 Setup node.js
107-
uses: actions/setup-node@v4
108+
uses: actions/setup-node@v6
108109
with:
110+
node-version: 24.x
109111
cache: 'npm'
110112
- name: 📦 Install dependencies
111113
run: npm ci
112114
- name: ⚙️ Build project
113115
run: npm run build
114116
- name: 🪄 Build and push
115-
uses: docker/build-push-action@v6
117+
uses: docker/build-push-action@v7
116118
continue-on-error: true
117119
id: docker-build-1
118120
timeout-minutes: 30
119121
with:
120122
context: .
121123
github-token: ${{ secrets.GITHUB_TOKEN }}
122124
builder: ${{ steps.buildx.outputs.name }}
123-
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
125+
platforms: linux/amd64,linux/arm64/v8
124126
pull: true
125127
push: true
126128
tags: |
@@ -136,7 +138,7 @@ jobs:
136138
ghcr.io/${{ github.repository }}:cache-${{ hashFiles('package*.json') }}
137139
ghcr.io/${{ github.repository }}:next
138140
- name: 🪄 Build and push (second try)
139-
uses: docker/build-push-action@v6
141+
uses: docker/build-push-action@v7
140142
continue-on-error: true
141143
if: steps.docker-build-1.outcome=='failure'
142144
id: docker-build-2
@@ -145,7 +147,7 @@ jobs:
145147
context: .
146148
github-token: ${{ secrets.GITHUB_TOKEN }}
147149
builder: ${{ steps.buildx.outputs.name }}
148-
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
150+
platforms: linux/amd64,linux/arm64/v8
149151
pull: true
150152
push: true
151153
tags: |
@@ -161,7 +163,7 @@ jobs:
161163
ghcr.io/${{ github.repository }}:cache-${{ hashFiles('package*.json') }}
162164
ghcr.io/${{ github.repository }}:next
163165
- name: 🪄 Build and push (third try)
164-
uses: docker/build-push-action@v6
166+
uses: docker/build-push-action@v7
165167
if: steps.docker-build-2.outcome=='failure'
166168
continue-on-error: true
167169
id: docker-build-3
@@ -170,7 +172,7 @@ jobs:
170172
context: .
171173
github-token: ${{ secrets.GITHUB_TOKEN }}
172174
builder: ${{ steps.buildx.outputs.name }}
173-
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
175+
platforms: linux/amd64,linux/arm64/v8
174176
pull: true
175177
push: true
176178
tags: |
@@ -205,12 +207,12 @@ jobs:
205207
- name: 🔄 Push container to DockerHub
206208
id: docker-build-dh
207209
if: ${{ env.PUSH_TO_DOCKERHUB == 'true' }}
208-
uses: docker/build-push-action@v6
210+
uses: docker/build-push-action@v7
209211
with:
210212
context: .
211213
github-token: ${{ secrets.GITHUB_TOKEN }}
212214
builder: ${{ steps.buildx.outputs.name }}
213-
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
215+
platforms: linux/amd64,linux/arm64/v8
214216
push: true
215217
tags: |
216218
${{ github.repository }}:${{ github.sha }}
@@ -296,13 +298,13 @@ jobs:
296298
- name: 📂 Create docs folder
297299
run: mkdir ./docs
298300
- name: 🔐 Login to GitHub Container Registry
299-
uses: docker/login-action@v3
301+
uses: docker/login-action@v4
300302
with:
301303
registry: ghcr.io
302304
username: ${{ github.repository_owner }}
303305
password: ${{ secrets.GITHUB_TOKEN }}
304306
- name: 🔐 Login to DockerHub
305-
uses: docker/login-action@v3
307+
uses: docker/login-action@v4
306308
with:
307309
username: ${{ github.repository_owner }}
308310
password: ${{ secrets.DOCKERHUB_TOKEN }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:lts-alpine@sha256:619ce27eb37c7c0476bd518085bf1ba892e2148fc1ab5dbaff2f20c56e50444d
1+
FROM node:lts-alpine@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f
22
ARG NODE_ENV=production
33
ENV NODE_ENV=$NODE_ENV
44
WORKDIR "/app"

0 commit comments

Comments
 (0)