feat: 添加对linux/arm/v7平台的支持,优化Docker构建配置

This commit is contained in:
katelya
2025-09-04 13:28:39 +08:00
parent 63d0942b66
commit b9222cf33d
3 changed files with 10 additions and 3 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: false
tags: |
katelyatv:latest
@@ -58,7 +58,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/katelyatv:latest
@@ -75,7 +75,7 @@ jobs:
- name: Test Summary
run: |
echo "✅ Docker build completed successfully!"
echo "📦 Multi-platform support: linux/amd64, linux/arm64"
echo "📦 Multi-platform support: linux/amd64, linux/arm64, linux/arm/v7"
echo "🔄 Cache optimization enabled"
if [ "${{ github.event_name }}" != "pull_request" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then
echo "🚀 Images pushed to GitHub Container Registry"
+1
View File
@@ -30,6 +30,7 @@ jobs:
platform:
- linux/amd64
- linux/arm64
- linux/arm/v7
steps:
- name: Checkout repository
uses: actions/checkout@v4