Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wukongdaily authored Jun 15, 2024
1 parent dabfc5a commit fb446ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PPPPP
name: AAAA

on:
workflow_dispatch:
Expand All @@ -10,7 +10,7 @@ on:
platforms:
description: 'Comma-separated list of platforms to package'
required: true
default: 'amd64,arm64' # 设置默认的平台列表
default: 'linux/amd64,linux/arm64' # 设置默认的平台列表

jobs:
pull_and_package:
Expand All @@ -28,8 +28,8 @@ jobs:
IFS=',' read -r -a platform_array <<< "$platforms"
for image in "${image_array[@]}"; do
for platform in "${platform_array[@]}"; do
docker pull "${platform}/${image}"
docker save "${platform}/${image}" -o "${image//\//_}-${platform}.tar"
docker pull ${image} --platform ${platform}
docker save "${image}" -o "${image//\//_}-${platform}.tar"
done
done
Expand Down

0 comments on commit fb446ea

Please sign in to comment.