ci: drop Windows image (official node Windows base images removed)

node:24-windowsservercore* / nanoserver don't exist on Docker Hub (Node
stopped publishing Windows container images; even node:20 Windows tags
are gone). Keep linux/amd64 + linux/arm64 on node 24.
This commit is contained in:
lezi-fun committed 2026-08-11 19:09:27 +08:00
1 parent 1cfc61ff45
commit de69cd81a1
2 files changed
-51

No files matched your search

-21
View File
@@ -77,24 +77,3 @@ jobs:
cache-from: type=gha,scope=arm64
cache-to: type=gha,mode=max,scope=arm64
win64:
runs-on: windows-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# windows-latest runner 原生以 Windows 容器模式运行 Docker Engine
- name: Build Windows image (amd64)
shell: pwsh
run: |
docker build -f Dockerfile.windows -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:next-windows .
- name: Push Windows image
shell: pwsh
run: |
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:next-windows