fix: update Dockerfile to use Node.js 20 Alpine and correct commit SHA in .env.local; enhance nightly and release workflows with Docker Hub description and caching improvements

This commit is contained in:
2025-07-10 23:19:04 +00:00
committed by GitHub
parent 35febc578f
commit af218ee9d5
5 changed files with 38 additions and 10 deletions

View File

@@ -1 +1 @@
NEXT_PUBLIC_COMMIT_SHA=3c13c13 NEXT_PUBLIC_COMMIT_SHA=35febc5

View File

@@ -101,10 +101,13 @@ jobs:
- name: Setup Docker buildx - name: Setup Docker buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=host
- name: Build and push - name: Build and push
id: build id: build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: . context: .
push: true push: true
@@ -116,5 +119,14 @@ jobs:
platforms: | platforms: |
linux/amd64 linux/amd64
linux/arm64/v8 linux/arm64/v8
cache-from: type=gha cache-from: |
cache-to: type=gha,mode=max type=gha,scope=deps-only
cache-to: |
type=gha,mode=max,scope=deps-only
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: sillyangel/mice

View File

@@ -58,10 +58,13 @@ jobs:
- name: Setup Docker buildx - name: Setup Docker buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=host
- name: Build and push - name: Build and push
id: build id: build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: . context: .
push: true push: true
@@ -73,8 +76,10 @@ jobs:
platforms: | platforms: |
linux/amd64 linux/amd64
linux/arm64/v8 linux/arm64/v8
cache-from: type=gha cache-from: |
cache-to: type=gha,mode=max type=gha,scope=deps-only
cache-to: |
type=gha,mode=max,scope=deps-only
- name: Generate artifact attestation - name: Generate artifact attestation
uses: actions/attest-build-provenance@v1 uses: actions/attest-build-provenance@v1
@@ -82,3 +87,10 @@ jobs:
subject-name: ${{ env.IMAGE_NAME }} subject-name: ${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.build.outputs.digest }} subject-digest: ${{ steps.build.outputs.digest }}
push-to-registry: true push-to-registry: true
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: sillyangel/mice

View File

@@ -1,5 +1,5 @@
# Use Node.js 22 Alpine for smaller image size # Use Node.js 20 Alpine for smaller image size
FROM node:22-alpine FROM node:20-alpine
# Install pnpm globally # Install pnpm globally
RUN npm install -g pnpm@10.12.4 RUN npm install -g pnpm@10.12.4

View File

@@ -5,6 +5,10 @@ const nextConfig = {
{ {
protocol: "https", protocol: "https",
hostname: "**", hostname: "**",
},
{
protocol: "http",
hostname: "**",
} }
], ],
}, },