diff --git a/.env.local b/.env.local index fd9809c..44eabfd 100644 --- a/.env.local +++ b/.env.local @@ -1 +1 @@ -NEXT_PUBLIC_COMMIT_SHA=3c13c13 +NEXT_PUBLIC_COMMIT_SHA=35febc5 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2f1bee8..0149bf7 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -101,10 +101,13 @@ jobs: - name: Setup Docker buildx uses: docker/setup-buildx-action@v3 + with: + driver-opts: | + network=host - name: Build and push id: build - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . push: true @@ -116,5 +119,14 @@ jobs: platforms: | linux/amd64 linux/arm64/v8 - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: | + 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0463bc6..ce78851 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,10 +58,13 @@ jobs: - name: Setup Docker buildx uses: docker/setup-buildx-action@v3 - + with: + driver-opts: | + network=host + - name: Build and push id: build - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . push: true @@ -73,8 +76,10 @@ jobs: platforms: | linux/amd64 linux/arm64/v8 - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: | + type=gha,scope=deps-only + cache-to: | + type=gha,mode=max,scope=deps-only - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 @@ -82,3 +87,10 @@ jobs: subject-name: ${{ env.IMAGE_NAME }} subject-digest: ${{ steps.build.outputs.digest }} 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 diff --git a/Dockerfile b/Dockerfile index 33f0e65..a3d167a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -# Use Node.js 22 Alpine for smaller image size -FROM node:22-alpine +# Use Node.js 20 Alpine for smaller image size +FROM node:20-alpine # Install pnpm globally RUN npm install -g pnpm@10.12.4 diff --git a/next.config.mjs b/next.config.mjs index 1ca7439..f86cbb3 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -5,6 +5,10 @@ const nextConfig = { { protocol: "https", hostname: "**", + }, + { + protocol: "http", + hostname: "**", } ], },